|
|
@ -7,16 +7,15 @@ services: |
|
|
|
environment: |
|
|
|
DATABASE_URL: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}?connect_timeout=300&sslmode=prefer |
|
|
|
NODE_ENV: production |
|
|
|
REDIS_HOST: 'redis' |
|
|
|
REDIS_HOST: redis |
|
|
|
REDIS_PASSWORD: ${REDIS_PASSWORD} |
|
|
|
ports: |
|
|
|
- "3333:3333" |
|
|
|
- 3333:3333 |
|
|
|
depends_on: |
|
|
|
postgres: |
|
|
|
condition: service_healthy |
|
|
|
redis: |
|
|
|
condition: service_healthy |
|
|
|
|
|
|
|
postgres: |
|
|
|
image: postgres:12 |
|
|
|
env_file: |
|
|
@ -28,9 +27,8 @@ services: |
|
|
|
retries: 5 |
|
|
|
volumes: |
|
|
|
- postgres:/var/lib/postgresql/data |
|
|
|
|
|
|
|
redis: |
|
|
|
image: 'redis:alpine' |
|
|
|
image: redis:alpine |
|
|
|
healthcheck: |
|
|
|
test: ['CMD-SHELL', 'redis-cli ping | grep PONG'] |
|
|
|
interval: 10s |
|
|
|