version: '3.8' services: app: image: akito13/selfoss:0.2.0 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_SHARE #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://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}" - coop-cloud.${STACK_NAME}.app.version=0.2.0-f93921cc 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