|
@ -22,20 +22,20 @@ services: |
|
|
env_file: |
|
|
env_file: |
|
|
- ../.env |
|
|
- ../.env |
|
|
healthcheck: |
|
|
healthcheck: |
|
|
test: [ "CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"] |
|
|
test: ['CMD-SHELL', 'pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}'] |
|
|
interval: 10s |
|
|
interval: 10s |
|
|
timeout: 5s |
|
|
timeout: 5s |
|
|
retries: 5 |
|
|
retries: 5 |
|
|
volumes: |
|
|
volumes: |
|
|
- postgres:/var/lib/postgresql/data |
|
|
- postgres:/var/lib/postgresql/data |
|
|
|
|
|
|
|
|
redis: |
|
|
redis: |
|
|
image: 'redis:alpine' |
|
|
image: 'redis:alpine' |
|
|
healthcheck: |
|
|
healthcheck: |
|
|
test: ["CMD-SHELL","redis-cli ping | grep PONG"] |
|
|
test: ['CMD-SHELL', 'redis-cli ping | grep PONG'] |
|
|
interval: 10s |
|
|
interval: 10s |
|
|
timeout: 5s |
|
|
timeout: 5s |
|
|
retries: 5 |
|
|
retries: 5 |
|
|
|
|
|
|
|
|
volumes: |
|
|
volumes: |
|
|
postgres: |
|
|
postgres: |
|
|