@ -1,4 +1,4 @@
version : '3. 7 '
version : '3. 9 '
services:
services:
ghostfolio:
ghostfolio:
image : ghostfolio/ghostfolio:latest
image : ghostfolio/ghostfolio:latest
@ -7,7 +7,7 @@ services:
environment:
environment:
DATABASE_URL : postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}?connect_timeout=300&sslmode=prefer
DATABASE_URL : postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}?connect_timeout=300&sslmode=prefer
NODE_ENV : production
NODE_ENV : production
REDIS_HOST : 'redis'
REDIS_HOST : redis
REDIS_PASSWORD : ${REDIS_PASSWORD}
REDIS_PASSWORD : ${REDIS_PASSWORD}
ports:
ports:
- 3333 : 3333
- 3333 : 3333
@ -16,7 +16,6 @@ services:
condition : service_healthy
condition : service_healthy
redis:
redis:
condition : service_healthy
condition : service_healthy
postgres:
postgres:
image : postgres:12
image : postgres:12
env_file:
env_file:
@ -28,9 +27,8 @@ services:
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