49 lines
1.3 KiB
YAML
49 lines
1.3 KiB
YAML
---
|
|
version: "3.8"
|
|
|
|
services:
|
|
app:
|
|
image: 'ghcr.io/darkrock-studios/hammer-editor/server:3.12.0@sha256:d208769719765c676fea696f991e7a69f6c2e4eba8caace684e3bfe817f75324'
|
|
init: true
|
|
networks:
|
|
- proxy
|
|
- internal
|
|
configs:
|
|
- source: config
|
|
target: /data/hammer_data/config.toml
|
|
mode: 0555
|
|
volumes:
|
|
- 'data:/data'
|
|
deploy:
|
|
restart_policy:
|
|
condition: on-failure
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=8080"
|
|
- "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}"
|
|
- "backupbot.backup=true"
|
|
- "backupbot.backup.path=/data"
|
|
- "coop-cloud.${STACK_NAME}.version=0.1.1+3.12.0"
|
|
# healthcheck:
|
|
# test: ["CMD", "bash", "/opt/gitlab/etc/gitlab-healthcheck-rc" ]
|
|
# interval: 30s
|
|
# timeout: 10s
|
|
# retries: 10
|
|
# start_period: 2m
|
|
|
|
volumes:
|
|
data:
|
|
|
|
configs:
|
|
config:
|
|
name: ${STACK_NAME}_config_${CONFIG_VERSION}
|
|
file: config.toml.tmpl
|
|
template_driver: golang
|
|
|
|
networks:
|
|
proxy:
|
|
external: true
|
|
internal:
|