ghostfolio/docker/docker-compose.yml

40 lines
951 B
YAML
Raw Normal View History

version: '3.9'
2021-04-13 21:53:58 +02:00
services:
ghostfolio:
2022-04-02 12:06:06 +02:00
image: ghostfolio/ghostfolio:latest
env_file:
- ../.env
environment:
DATABASE_URL: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}?connect_timeout=300&sslmode=prefer
NODE_ENV: production
REDIS_HOST: redis
REDIS_PASSWORD: ${REDIS_PASSWORD}
ports:
- 3333:3333
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
2021-04-13 21:53:58 +02:00
postgres:
image: postgres:15
2021-04-13 21:53:58 +02:00
env_file:
- ../.env
healthcheck:
test: ['CMD-SHELL', 'pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}']
interval: 10s
timeout: 5s
retries: 5
2021-04-13 21:53:58 +02:00
volumes:
- postgres:/var/lib/postgresql/data
redis:
image: redis:alpine
healthcheck:
test: ['CMD-SHELL', 'redis-cli ping | grep PONG']
interval: 10s
timeout: 5s
retries: 5
2021-04-13 21:53:58 +02:00
volumes:
postgres: