Use external database in compose by default
This commit is contained in:
@@ -7,6 +7,8 @@ services:
|
|||||||
image: postgres:15-alpine
|
image: postgres:15-alpine
|
||||||
container_name: lottery_postgres
|
container_name: lottery_postgres
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
profiles:
|
||||||
|
- local-db
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_DB: ${POSTGRES_DB:-new_lottery_kr}
|
POSTGRES_DB: ${POSTGRES_DB:-new_lottery_kr}
|
||||||
POSTGRES_USER: ${POSTGRES_USER:-lottery}
|
POSTGRES_USER: ${POSTGRES_USER:-lottery}
|
||||||
@@ -45,7 +47,7 @@ services:
|
|||||||
container_name: lottery_bot
|
container_name: lottery_bot
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
env_file:
|
env_file:
|
||||||
- .env.prod
|
- .env
|
||||||
environment:
|
environment:
|
||||||
- LOG_LEVEL=${LOG_LEVEL:-INFO}
|
- LOG_LEVEL=${LOG_LEVEL:-INFO}
|
||||||
- REDIS_URL=${REDIS_URL:-redis://redis:6379/0}
|
- REDIS_URL=${REDIS_URL:-redis://redis:6379/0}
|
||||||
@@ -55,8 +57,6 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- lottery_network
|
- lottery_network
|
||||||
depends_on:
|
depends_on:
|
||||||
postgres:
|
|
||||||
condition: service_healthy
|
|
||||||
redis:
|
redis:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
healthcheck:
|
healthcheck:
|
||||||
|
|||||||
Reference in New Issue
Block a user