Update file docker-compose.yml
This commit is contained in:
@ -12,9 +12,9 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- db
|
- db
|
||||||
- default
|
- default
|
||||||
# depends_on:
|
depends_on:
|
||||||
# postgres:
|
redis:
|
||||||
# condition: service_healthy
|
condition: service_healthy
|
||||||
nginx:
|
nginx:
|
||||||
build:
|
build:
|
||||||
dockerfile: ./nginx/Dockerfile
|
dockerfile: ./nginx/Dockerfile
|
||||||
@ -43,6 +43,16 @@ services:
|
|||||||
# interval: 2s
|
# interval: 2s
|
||||||
# timeout: 2s
|
# timeout: 2s
|
||||||
# retries: 5
|
# retries: 5
|
||||||
|
redis:
|
||||||
|
image: redis:7.2.4-alpine
|
||||||
|
restart: unless-stopped
|
||||||
|
ports:
|
||||||
|
- 6379
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD", "redis-cli", "--raw", "incr", "ping"]
|
||||||
|
interval: 2s
|
||||||
|
timeout: 2s
|
||||||
|
retries: 5
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
db:
|
db:
|
||||||
|
|||||||
Reference in New Issue
Block a user