Added redis service
This commit is contained in:
parent
05c9f95398
commit
429247cd7d
1 changed files with 17 additions and 4 deletions
|
|
@ -45,15 +45,28 @@ services:
|
|||
environment:
|
||||
POSTGRES_HOST_AUTH_METHOD: trust
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
- fyp_postgres_data:/var/lib/postgresql/data
|
||||
ports:
|
||||
- '0.0.0.0:5432:5432'
|
||||
healthcheck:
|
||||
test: ['CMD-SHELL', "pg_isready -h 127.0.0.1 -p 5432 -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
|
||||
test: ['CMD-SHELL', 'pg_isready -h 127.0.0.1 -p 5432 -U ${POSTGRES_USER} -d ${POSTGRES_DB}']
|
||||
interval: 5s
|
||||
timeout: 3s
|
||||
retries: 5
|
||||
|
||||
fyp-redis-dev:
|
||||
container_name: fyp-redis-dev
|
||||
image: redis:7-alpine
|
||||
ports:
|
||||
- '0.0.0.0:6379:6379'
|
||||
volumes:
|
||||
- fyp_redis_data:/data
|
||||
healthcheck:
|
||||
test: ["CMD", "redis-cli", "ping"]
|
||||
interval: 5s
|
||||
timeout: 3s
|
||||
retries: 5
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
|
||||
fyp_postgres_data:
|
||||
fyp_redis_data:
|
||||
|
|
|
|||
Loading…
Reference in a new issue