version: "3.8" services: app: image: wallabag/wallabag:2.6.8 environment: # Prevent database creation (handled by MySQL service) - POPULATE_DATABASE="false" - SYMFONY__ENV__DATABASE_DRIVER=pdo_mysql - SYMFONY__ENV__DATABASE_HOST=db - SYMFONY__ENV__DATABASE_PORT=3306 - SYMFONY__ENV__DATABASE_NAME=wallabag - SYMFONY__ENV__DATABASE_USER=wallabag # FIXME: use Docker secrets, see # https://github.com/wallabag/docker/issues/186 - SYMFONY__ENV__DATABASE_PASSWORD_FILE=/run/secrets/db_password - SYMFONY__ENV__DATABASE_CHARSET=utf8mb4 - 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: - db_password - 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.2+2.6.8" db: image: mariadb:11.2 environment: - MYSQL_ROOT_PASSWORD_FILE=/run/secrets/db_root_password - MYSQL_USER=wallabag - MYSQL_DATABASE=wallabag - MYSQL_PASSWORD_FILE=/run/secrets/db_password volumes: - mariadb:/var/lib/mysql networks: - internal secrets: - db_password - db_root_password redis: image: redis:7.2.4-alpine networks: - internal volumes: images: mariadb: networks: proxy: external: true internal: secrets: db_password: external: true name: ${STACK_NAME}_db_password_${SECRET_DB_PASSWORD_VERSION} db_root_password: external: true name: ${STACK_NAME}_db_root_password_${SECRET_DB_ROOT_PASSWORD_VERSION} 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