version: '3.9' services: app: image: git.myhomecloud.tech/admin/familyhub:latest container_name: application restart: unless-stopped ports: - "8000:8000" environment: - DB_HOST=${DB_HOST} - DB_PORT=${DB_PORT} - DB_USER=${DB_USER} - DB_PASSWORD=${DB_PASSWORD} - DB_NAME=${DB_NAME} - BOT_TOKEN=${BOT_TOKEN} - GOOGLE_APPLICATION_CREDENTIALS=${GOOGLE_APPLICATION_CREDENTIALS} - RUN_MODE=${RUN_MODE} - API_SECRET=${API_SECRET} - DB_PATH=postgres://${DB_USER}:${DB_PASSWORD}@${DB_HOST}:${DB_PORT}/${DB_NAME}?sslmode=disable - OPEN_API_ENABLED=${OPEN_API_ENABLED} - DEBUG_MODE=${DEBUG_MODE} depends_on: - db networks: - family-hub-net db: image: git.myhomecloud.tech/admin/familyhub-postgres:latest container_name: postgres restart: always pull_policy: always ports: - "5432:5432" command: - postgres - -c - shared_preload_libraries=pg_cron - -c - cron.database_name=familyHubDB environment: POSTGRES_USER: ${DB_USER} POSTGRES_PASSWORD: ${DB_PASSWORD} POSTGRES_DB: ${DB_NAME} volumes: - postgres-data:/var/lib/postgresql/data - ./init:/docker-entrypoint-initdb.d networks: - family-hub-net networks: family-hub-net: volumes: postgres-data: