68 lines
2.2 KiB
YAML
68 lines
2.2 KiB
YAML
version: '3.8'
|
|
services:
|
|
app:
|
|
image: rsprta/selfoss:2.19
|
|
volumes:
|
|
- selfoss:/selfoss/data
|
|
environment:
|
|
- SELFOSS_USERNAME
|
|
- SELFOSS_PASSWORD
|
|
# TODO 3wc: call PHP password_hash() on this before loading it, see
|
|
# https://git.autonomic.zone/coop-cloud/selfoss/issues/3
|
|
#- SELFOSS_PASSWORD_FILE=/run/secrets/selfoss_password
|
|
- SELFOSS_DB_TYPE
|
|
- SELFOSS_LOGGER_LEVEL
|
|
# Not working yet :/
|
|
- SELFOSS_WALLABAG
|
|
- SELFOSS_WALLABAG_VERSION
|
|
- SELFOSS_MASTODON
|
|
- SELFOSS_SHARE
|
|
- SELFOSS_BASE_URL=https://${DOMAIN}/
|
|
#secrets:
|
|
# TODO 3wc: see above note about issue #3
|
|
#- selfoss_password
|
|
configs:
|
|
- source: entrypoint_conf
|
|
target: /docker-entrypoint.sh
|
|
mode: 0555
|
|
networks:
|
|
- proxy
|
|
entrypoint: /docker-entrypoint.sh
|
|
healthcheck:
|
|
test: ["CMD", "wget", "-qO", "-", "http://127.0.0.1:8888"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 10
|
|
start_period: 1m
|
|
deploy:
|
|
update_config:
|
|
failure_action: rollback
|
|
order: start-first
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.docker.network=proxy"
|
|
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=8888"
|
|
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`${EXTRA_DOMAINS})"
|
|
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
|
|
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
|
|
- "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}"
|
|
- "coop-cloud.${STACK_NAME}.version=0.1.0+0.2.0"
|
|
networks:
|
|
proxy:
|
|
external: true
|
|
internal:
|
|
volumes:
|
|
selfoss:
|
|
#secrets:
|
|
# TODO 3wc: see above note about issue #3
|
|
#selfoss_password:
|
|
# external: true
|
|
# name: ${STACK_NAME}_selfoss_password_${SELFOSS_PASSWORD_VERSION}
|
|
configs:
|
|
entrypoint_conf:
|
|
name: ${STACK_NAME}_entrypoint_${ENTRYPOINT_CONF_VERSION}
|
|
file: entrypoint.sh.tmpl
|
|
template_driver: golang
|