wallabag/compose.yml
2025-06-04 15:21:26 -03:00

67 lines
2.0 KiB
YAML

version: "3.8"
services:
app:
image: wallabag/wallabag:2.6.13
environment:
# Prevent database creation (handled by MySQL service)
- POPULATE_DATABASE="false"
- SYMFONY__ENV__MAILER_HOST
- SYMFONY__ENV__MAILER_USER
- SYMFONY__ENV__MAILER_PASSWORD_FILE=/run/secrets/smtp_password
- SYMFONY__ENV__FROM_EMAIL
- SYMFONY__ENV__DOMAIN_NAME=https://${DOMAIN}
- SYMFONY__ENV__FOSUSER_REGISTRATION
- SYMFONY__ENV__SECRET_FILE=/run/secrets/app_secret
volumes:
- images:/var/www/wallabag/web/assets/images
networks:
- proxy
- internal
secrets:
- app_secret
- smtp_password
entrypoint: /custom-entrypoint.sh
configs:
- source: entrypoint
target: /custom-entrypoint.sh
mode: 0555
deploy:
restart_policy:
condition: on-failure
labels:
- "traefik.enable=true"
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=80"
- "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}"
## 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}"
- "coop-cloud.${STACK_NAME}.version=0.5.3+2.6.12"
redis:
image: redis:7.2.4-alpine
networks:
- internal
volumes:
images:
networks:
proxy:
external: true
internal:
secrets:
app_secret:
external: true
name: ${STACK_NAME}_app_secret_${SECRET_APP_SECRET_VERSION}
smtp_password:
external: true
name: ${STACK_NAME}_smtp_password_${SECRET_SMTP_PASSWORD_VERSION}
configs:
entrypoint:
name: ${STACK_NAME}_entrypoint_${ENTRYPOINT_VERSION}
file: entrypoint.sh.tmpl
template_driver: golang