version: '3.8' services: postgres: image: postgres:16 container_name: ghostfolio-db environment: POSTGRES_USER: ghostfolio POSTGRES_PASSWORD: password POSTGRES_DB: ghostfolio ports: - "5432:5432" volumes: - postgres-data:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U ghostfolio"] interval: 10s timeout: 5s retries: 5 redis: image: redis:alpine container_name: ghostfolio-redis command: redis-server --appendonly yes ports: - "6379:6379" volumes: - redis-data:/data healthcheck: test: ["CMD", "redis-cli", "ping"] interval: 10s timeout: 5s retries: 5 volumes: postgres-data: redis-data: