63 lines
1.6 KiB
YAML
63 lines
1.6 KiB
YAML
---
|
|
version: "3.8"
|
|
|
|
services:
|
|
app:
|
|
image: ohmyform/ohmyform:1.0.3
|
|
networks:
|
|
- proxy
|
|
volumes:
|
|
- form-data:/data
|
|
secrets:
|
|
- secret_key
|
|
- admin_password
|
|
environment:
|
|
- ADMIN_EMAIL
|
|
- ADMIN_PASSWORD_FILE=/run/secrets/admin_password
|
|
- ADMIN_USERNAME=admin
|
|
- CREATE_ADMIN
|
|
- DATABASE_DRIVER=sqlite
|
|
- DATABASE_URL="sqlite:///data/data.sqlite"
|
|
- DEFAULT_ROLE
|
|
- LOGIN_NOTE
|
|
- NODE_ENV=production
|
|
- SECRET_KEY_FILE=/run/secrets/secret_key
|
|
- SIGNUP_DISABLED
|
|
configs:
|
|
- source: app_entrypoint
|
|
target: /docker-entrypoint.sh
|
|
mode: 0555
|
|
entrypoint: /docker-entrypoint.sh
|
|
command: "/usr/bin/supervisord -c /etc/supervisord.conf"
|
|
deploy:
|
|
restart_policy:
|
|
condition: on-failure
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=3000"
|
|
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`)"
|
|
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
|
|
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
|
|
- "coop-cloud.${STACK_NAME}.version="
|
|
|
|
volumes:
|
|
form-data:
|
|
|
|
networks:
|
|
proxy:
|
|
external: true
|
|
|
|
configs:
|
|
app_entrypoint:
|
|
name: ${STACK_NAME}_app_entrypoint_${APP_ENTRYPOINT_VERSION}
|
|
file: entrypoint.sh.tmpl
|
|
template_driver: golang
|
|
|
|
secrets:
|
|
admin_password:
|
|
external: true
|
|
name: ${STACK_NAME}_admin_password_${SECRET_ADMIN_PASSWORD_VERSION}
|
|
secret_key:
|
|
external: true
|
|
name: ${STACK_NAME}_secret_key_${SECRET_SECRET_KEY_VERSION}
|