--- version: "3.8" services: app: image: fung.uy/mycosystems/liberaforms:v4.0.0 configs: - source: entrypoint mode: 0555 target: /custom-entrypoint.sh - source: init mode: 0555 target: /init.sh entrypoint: /custom-entrypoint.sh environment: ENABLE_LDAP: "False" FLASK_DEBUG: "False" FLASK_CONFIG: production DB_HOST: db DB_USER: liberaforms DB_PASSWORD_FILE: /run/secrets/db_password DB_NAME: liberaforms BASE_URL: https://${DOMAIN} ROOT_USER: ${ADMIN_USER} TMP_DIR: /tmp SECRET_KEY_FILE: /run/secrets/secret_key CRYPTO_KEY_FILE: /run/secrets/crypto_key SESSION_TYPE: "filesystem" LOG_LEVEL: INFO LOG_DIR: /app/logs GUNICORN_WORKERS: ${GUNICORN_WORKERS:-6} volumes: - app - uploads:/app/uploads - log:/app/logs secrets: - db_password - secret_key - crypto_key networks: - internal deploy: labels: - "coop-cloud.${STACK_NAME}.version=" - "traefik.enable=true" - "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=5000" - "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`${EXTRA_DOMAINS})" - "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure" - "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}" db: image: postgres:17 healthcheck: test: ["CMD", "pg_isready", "-q", "-d", "postgres", "-U", "${POSTGRES_ROOT_USER}"] timeout: 45s interval: 10s retries: 10 environment: POSTGRES_USER: liberaforms POSTGRES_DB: liberaforms POSTGRES_PASSWORD_FILE: /run/secrets/db_password volumes: - db:/var/lib/postgresql/data secrets: - db_password networks: - internal secrets: db_password: external: true name: ${STACK_NAME}_db_password_${SECRET_DB_PASSWORD_VERSION} secret_key: external: true name: ${STACK_NAME}_secret_key_${SECRET_SECRET_KEY_VERSION} crypto_key: external: true name: ${STACK_NAME}_crypto_key_${SECRET_CRYPTO_KEY_VERSION} volumes: uploads: log: db: networks: internal: proxy: external: true configs: entrypoint: name: ${STACK_NAME}_entrypoint_${ENTRYPOINT_VERSION} file: entrypoint.sh.tmpl template_driver: golang init: name: ${STACK_NAME}_init_${INIT_VERSION} file: init.sh.tmpl template_driver: golang nginx_conf: name: ${STACK_NAME}_nginx_conf_${NGINX_CONF_VERSION} file: nginx.conf.tmpl template_driver: golang