2020-11-28 22:51:37 +01:00
|
|
|
services:
|
|
|
|
app:
|
|
|
|
image: wallabag/wallabag
|
|
|
|
restart: unless-stopped
|
|
|
|
environment:
|
|
|
|
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
|
|
|
|
- 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=${MYSQL_USER}
|
|
|
|
- SYMFONY__ENV__DATABASE_PASSWORD=${MYSQL_PASSWORD}
|
|
|
|
- SYMFONY__ENV__DATABASE_CHARSET=utf8mb4
|
|
|
|
- SYMFONY__ENV__MAILER_HOST=127.0.0.1
|
|
|
|
- SYMFONY__ENV__MAILER_USER=~
|
|
|
|
- SYMFONY__ENV__MAILER_PASSWORD=~
|
|
|
|
- SYMFONY__ENV__FROM_EMAIL=wallabag@${DOMAIN}
|
|
|
|
- SYMFONY__ENV__DOMAIN_NAME=https://wallabag.${DOMAIN}
|
|
|
|
networks:
|
|
|
|
- web
|
|
|
|
- wallabag
|
|
|
|
volumes:
|
2024-04-05 08:40:41 +02:00
|
|
|
- ${VOLUMES_PATH}/wallabag/images:/var/www/wallabag/web/assets/images
|
2023-06-09 08:58:54 +02:00
|
|
|
healthcheck:
|
2024-04-05 08:40:41 +02:00
|
|
|
test: ["CMD", "curl" ,"--fail", "http://localhost/api/info"]
|
2023-06-09 08:58:54 +02:00
|
|
|
interval: 10s
|
|
|
|
timeout: 3s
|
2020-11-28 22:51:37 +01:00
|
|
|
labels:
|
|
|
|
- "traefik.enable=true"
|
|
|
|
- "traefik.http.routers.wallabag.rule=Host(`wallabag.${DOMAIN}`)"
|
|
|
|
- "traefik.http.routers.wallabag.entrypoints=websecure"
|
2021-03-20 01:32:35 +01:00
|
|
|
- "traefik.http.routers.wallabag.tls.certresolver=netcup"
|
2020-11-28 22:51:37 +01:00
|
|
|
- "traefik.http.routers.wallabag.tls.options=intermediate@file"
|
2021-03-28 13:50:02 +02:00
|
|
|
- "docker.group=wallabag"
|
2020-11-28 22:51:37 +01:00
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
- redis
|
2024-04-05 08:40:41 +02:00
|
|
|
|
2020-11-28 22:51:37 +01:00
|
|
|
db:
|
2024-04-05 08:40:41 +02:00
|
|
|
image: mariadb:${MARIADB_VERSION}
|
2020-11-28 22:51:37 +01:00
|
|
|
restart: unless-stopped
|
|
|
|
environment:
|
2024-04-05 08:40:41 +02:00
|
|
|
- MARIADB_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
|
2020-11-28 22:51:37 +01:00
|
|
|
networks:
|
|
|
|
- wallabag
|
|
|
|
volumes:
|
2023-06-05 14:57:29 +02:00
|
|
|
- /var/dockervolumes/wallabag/db:/var/lib/mysql
|
2021-03-28 13:50:02 +02:00
|
|
|
labels:
|
|
|
|
- "docker.group=wallabag"
|
2024-04-05 08:40:41 +02:00
|
|
|
|
2020-11-28 22:51:37 +01:00
|
|
|
redis:
|
2023-06-09 08:58:54 +02:00
|
|
|
image: redis
|
2020-11-28 22:51:37 +01:00
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
|
|
- wallabag
|
2023-06-09 08:58:54 +02:00
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "redis-cli", "ping"]
|
|
|
|
interval: 5s
|
|
|
|
timeout: 3s
|
|
|
|
labels:
|
|
|
|
- "docker.group=wallabag"
|
2020-11-28 22:51:37 +01:00
|
|
|
|
|
|
|
|
|
|
|
networks:
|
|
|
|
web:
|
|
|
|
external: true
|
|
|
|
wallabag:
|