This repository has been archived on 2021-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
selfoss/compose.yml

66 lines
2.1 KiB
YAML
Raw Normal View History

2020-09-23 11:35:54 +00:00
version: '3.8'
2020-09-22 15:48:14 +00:00
services:
app:
2021-04-03 12:38:49 +00:00
image: akito13/selfoss:0.2.0
2020-09-22 15:48:14 +00:00
volumes:
- selfoss:/selfoss/data
2020-09-23 11:35:54 +00:00
environment:
- SELFOSS_USERNAME
- SELFOSS_PASSWORD
2020-09-23 11:53:34 +00:00
# TODO 3wc: call PHP password_hash() on this before loading it, see
# https://git.autonomic.zone/coop-cloud/selfoss/issues/3
2020-09-23 11:35:54 +00:00
#- SELFOSS_PASSWORD_FILE=/run/secrets/selfoss_password
- SELFOSS_DB_TYPE
- SELFOSS_LOGGER_LEVEL
2020-10-24 18:59:56 +00:00
# Not working yet :/
#- SELFOSS_WALLABAG
#- SELFOSS_WALLABAG_VERSION
- SELFOSS_SHARE
2020-09-23 14:57:11 +00:00
#secrets:
2021-04-04 21:01:54 +00:00
# TODO 3wc: see above note about issue #3
#- selfoss_password
2020-09-23 11:35:54 +00:00
configs:
- source: entrypoint_conf
target: /docker-entrypoint.sh
mode: 0555
networks:
- proxy
entrypoint: /docker-entrypoint.sh
2020-09-23 12:21:22 +00:00
healthcheck:
test: ["CMD", "wget", "-qO", "-", "http://localhost: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}"
2021-04-04 21:01:54 +00:00
- coop-cloud.${STACK_NAME}.app.version=0.2.0-f93921cc
2020-09-22 15:48:14 +00:00
networks:
proxy:
external: true
2020-09-23 11:35:54 +00:00
internal:
2020-09-22 15:48:14 +00:00
volumes:
selfoss:
2020-09-23 14:57:11 +00:00
#secrets:
2021-04-04 21:01:54 +00:00
# TODO 3wc: see above note about issue #3
#selfoss_password:
# external: true
# name: ${STACK_NAME}_selfoss_password_${SELFOSS_PASSWORD_VERSION}
2020-09-23 11:35:54 +00:00
configs:
entrypoint_conf:
name: ${STACK_NAME}_entrypoint_${ENTRYPOINT_CONF_VERSION}
file: entrypoint.sh.tmpl
template_driver: golang