Files
formio/compose.yml
T
2026-04-14 20:19:02 -04:00

76 lines
2.2 KiB
YAML

---
version: "3.8"
services:
app:
image: formio/formio:4.6.2
networks:
- proxy
- internal
environment:
DEBUG: formio:*
NODE_CONFIG: '{"mongo": "mongodb://mongo:27017/formio"}'
ROOT_PASSWORD_FILE: annoying
secrets:
- root_pass
deploy:
restart_policy:
condition: on-failure
labels:
- "traefik.enable=true"
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=3001"
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`${EXTRA_DOMAINS}) || HostRegexp(`{subdomain:\\w+}.${WILDCARD_DOMAIN}`)"
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
## Redirect from EXTRA_DOMAINS to DOMAIN
#- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect"
#- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLForceHost=true"
#- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
# - "backupbot.backup=true"
# - "backupbot.backup.path=/baserow/data"
# - "backupbot.backup.pre-hook=/backup.sh pre-backup"
# - "backupbot.backup.post-hook=/backup.sh post-backup"
# - "backupbot.restore.post-hook=/backup.sh post-restore"
- "coop-cloud.${STACK_NAME}.version=0.0.1+4.6.2"
# healthcheck:
# test: ["CMD", "./baserow.sh", "backend-cmd", "backend-healthcheck"]
# interval: 30s
# timeout: 10s
# retries: 10
# start_period: 1m
configs:
- source: backup-postgres
target: /backup.sh
mode: 0777
mongodb:
image: mongo:8.2.6
networks:
- internal
volumes:
- data:/data/db
environment:
MONGO_INITDB_ROOT_USERNAME: "root"
MONGO_INITDB_ROOT_PASSWORD_FILE: "/run/secrets/mongo_pass"
secrets:
- mongo_pass
volumes:
data:
configs:
backup-postgres:
name: backup-postgres_${PG_BACKUP_CONFIG_VERSION}
file: ./backup-postgres.sh
networks:
proxy:
external: true
secrets:
root_pass:
external: true
name: ${STACK_NAME}_root_pass_${SECRET_ROOT_PASS_VERSION}
mongo_pass:
external: true
name: ${STACK_NAME}_mongo_pass_${SECRET_MONGO_PASS_VERSION}