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