fix(setup): remove env_file from base compose to prevent .env requirement in prod
This commit is contained in:
@@ -3,7 +3,6 @@
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
postgres:
|
postgres:
|
||||||
env_file: .env.prod
|
|
||||||
volumes:
|
volumes:
|
||||||
- ./docker-data/postgres:/var/lib/postgresql/data
|
- ./docker-data/postgres:/var/lib/postgresql/data
|
||||||
- ./scripts/init-postgres-prod.sql:/docker-entrypoint-initdb.d/init.sql:ro
|
- ./scripts/init-postgres-prod.sql:/docker-entrypoint-initdb.d/init.sql:ro
|
||||||
@@ -133,12 +132,6 @@ services:
|
|||||||
max-size: "10m"
|
max-size: "10m"
|
||||||
max-file: "3"
|
max-file: "3"
|
||||||
|
|
||||||
redis:
|
|
||||||
env_file: .env.prod
|
|
||||||
|
|
||||||
nats:
|
|
||||||
env_file: .env.prod
|
|
||||||
|
|
||||||
winbox-worker:
|
winbox-worker:
|
||||||
environment:
|
environment:
|
||||||
LOG_LEVEL: info
|
LOG_LEVEL: info
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ services:
|
|||||||
postgres:
|
postgres:
|
||||||
image: timescale/timescaledb:2.17.2-pg17
|
image: timescale/timescaledb:2.17.2-pg17
|
||||||
container_name: tod_postgres
|
container_name: tod_postgres
|
||||||
env_file: .env
|
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_DB: ${POSTGRES_DB:-tod}
|
POSTGRES_DB: ${POSTGRES_DB:-tod}
|
||||||
POSTGRES_USER: ${POSTGRES_USER:-postgres}
|
POSTGRES_USER: ${POSTGRES_USER:-postgres}
|
||||||
@@ -41,7 +40,6 @@ services:
|
|||||||
redis:
|
redis:
|
||||||
image: redis:7-alpine
|
image: redis:7-alpine
|
||||||
container_name: tod_redis
|
container_name: tod_redis
|
||||||
env_file: .env
|
|
||||||
ports:
|
ports:
|
||||||
- "6379:6379"
|
- "6379:6379"
|
||||||
volumes:
|
volumes:
|
||||||
@@ -62,7 +60,6 @@ services:
|
|||||||
image: nats:2-alpine
|
image: nats:2-alpine
|
||||||
container_name: tod_nats
|
container_name: tod_nats
|
||||||
command: ["--jetstream", "--store_dir", "/data", "-m", "8222"]
|
command: ["--jetstream", "--store_dir", "/data", "-m", "8222"]
|
||||||
env_file: .env
|
|
||||||
ports:
|
ports:
|
||||||
- "4222:4222"
|
- "4222:4222"
|
||||||
- "8222:8222"
|
- "8222:8222"
|
||||||
|
|||||||
Reference in New Issue
Block a user