version: "3.8" # https://vikunja.io/docs/config-options/#database services: vikunja_api: depends_on: - postgres environment: VIKUNJA_DATABASE_TYPE: ${VIKUNJA_DATABASE_TYPE:-postgres} VIKUNJA_DATABASE_MAXOPENCONNECTIONS: ${VIKUNJA_DATABASE_MAXOPENCONNECTIONS:-100} VIKUNJA_DATABASE_MAXIDLECONNECTIONS: ${VIKUNJA_DATABASE_MAXIDLECONNECTIONS:-50} VIKUNJA_DATABASE_MAXCONNECTIONLIFETIME: ${VIKUNJA_DATABASE_MAXCONNECTIONLIFETIME:-10000} VIKUNJA_DATABASE_SSLMODE: ${VIKUNJA_DATABASE_SSLMODE:-disable} VIKUNJA_DATABASE_HOST: ${POSTGRES_CONTAINER_NAME:-postgres}:5432 # Default name is same as ../postgres/docker-compose.yml:8 VIKUNJA_DATABASE_DATABASE: ${POSTGRES_DB:?err} VIKUNJA_DATABASE_USER: ${POSTGRES_USER:?err} VIKUNJA_DATABASE_PASSWORD: ${POSTGRES_PASSWORD:?err}