mirror of
https://github.com/nickyeoman/docker-compose-cookbooks.git
synced 2026-09-04 02:46:23 +00:00
wallabag should work now.
This commit is contained in:
+17
-20
@@ -1,3 +1,10 @@
|
||||
###############################################################################
|
||||
# reference link: https://geek-cookbook.funkypenguin.co.nz/recipes/wallabag/
|
||||
# You will want this for environment:
|
||||
# https://doc.wallabag.org/en/admin/parameters.html
|
||||
# and main docker page:
|
||||
# https://github.com/wallabag/docker/blob/master/README.md
|
||||
###############################################################################
|
||||
---
|
||||
version: '3'
|
||||
|
||||
@@ -19,26 +26,22 @@ services:
|
||||
- wallabag-db:/var/lib/mysql
|
||||
networks:
|
||||
- admin_web
|
||||
command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --character-set-client-handshake=FALSE
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: ${WALLABAG_MYSQL_ROOT_PASSWORD}
|
||||
MYSQL_USER: wallabag
|
||||
MYSQL_PASSWORD: ${WALLABAG_MYSQL_PASSWORD}
|
||||
MYSQL_DATABASE: wallabag
|
||||
MYSQL_ROOT_HOST: "172.18.0.20"
|
||||
# Do not define mysql info, an ansible script in wallabag does that.
|
||||
|
||||
wallabag:
|
||||
#https://hub.docker.com/r/wallabag/wallabag
|
||||
image: wallabag/wallabag:${WALLABAG_V}
|
||||
healthcheck:
|
||||
test: ["CMD", "curl" , "-f", "http://localhost:80"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 5
|
||||
environment:
|
||||
- TZ=it-IT
|
||||
- PUID=1000
|
||||
- PGID=1000
|
||||
- SYMFONY__ENV__DOMAIN_NAME=https://${WALLABAG_DOMAIN_NAME}
|
||||
# 30 characters, try:
|
||||
- SYMFONY__ENV__SECRET=${WALLABAG_SECRET}
|
||||
- SYMFONY__ENV__FOSUSER_REGISTRATION=false
|
||||
# MYSQL
|
||||
- MYSQL_ROOT_PASSWORD=${WALLABAG_MYSQL_ROOT_PASSWORD}
|
||||
- SYMFONY__ENV__DATABASE_DRIVER=pdo_mysql
|
||||
- SYMFONY__ENV__DATABASE_HOST=${PREFIX}_wallabag-db_1
|
||||
@@ -47,18 +50,12 @@ services:
|
||||
- SYMFONY__ENV__DATABASE_USER=wallabag
|
||||
- SYMFONY__ENV__DATABASE_PASSWORD=${WALLABAG_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@example.com
|
||||
- SYMFONY__ENV__DOMAIN_NAME=https://${WALLABAG_DOMAIN_NAME}
|
||||
# Redis
|
||||
- SYMFONY__ENV__REDIS_HOST=${PREFIX}_wallabag-redis_1
|
||||
- SYMFONY__ENV__SECRET=Fm0r4R
|
||||
# Mailer doesn't work until v2.4
|
||||
|
||||
volumes:
|
||||
- wallabag:/var/www/wallabag/web/assets/images
|
||||
expose:
|
||||
- "80"
|
||||
- "443"
|
||||
depends_on:
|
||||
- wallabag-db
|
||||
links:
|
||||
@@ -70,7 +67,7 @@ services:
|
||||
- "traefik.http.routers.${PREFIX}_wallabag.rule=Host(`${WALLABAG_DOMAIN_NAME}`)"
|
||||
- "traefik.http.routers.${PREFIX}_wallabag.entrypoints=websecure"
|
||||
- "traefik.http.routers.${PREFIX}_wallabag.tls.certresolver=letsencrypt"
|
||||
- "traefik.http.services.${PREFIX}_wallabag.loadbalancer.server.port=443"
|
||||
- "traefik.http.services.${PREFIX}_wallabag.loadbalancer.server.port=80"
|
||||
|
||||
wallabag-redis:
|
||||
image: redis:5.0.9
|
||||
|
||||
Reference in New Issue
Block a user