Skip to content

Instantly share code, notes, and snippets.

@CattopyTheWeb
Created June 30, 2023 15:12
Show Gist options
  • Save CattopyTheWeb/65a8f7f534400bb469947cc5c39a96c7 to your computer and use it in GitHub Desktop.
Save CattopyTheWeb/65a8f7f534400bb469947cc5c39a96c7 to your computer and use it in GitHub Desktop.
version: '3'
services:
wallabag:
image: wallabag/wallabag
environment:
- MYSQL_ROOT_PASSWORD=wallaroot
- 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
- SYMFONY__ENV__DATABASE_PASSWORD=wallapass
- SYMFONY__ENV__DATABASE_CHARSET=utf8mb4
- SYMFONY__ENV__DATABASE_TABLE_PREFIX="wallabag_"
- SYMFONY__ENV__MAILER_DSN=smtp://127.0.0.1
- [email protected]
- SYMFONY__ENV__DOMAIN_NAME=https://{yourdomain}
- SYMFONY__ENV__SERVER_NAME="Your wallabag"
ports:
- 8923:80
volumes:
- /opt/wallabag/images:/var/www/wallabag/web/assets/images
healthcheck:
test: ["CMD", "wget" ,"--no-verbose", "--tries=1", "--spider", "http://localhost"]
interval: 1m
timeout: 3s
depends_on:
- db
- redis
db:
image: mariadb
environment:
- MYSQL_ROOT_PASSWORD=wallaroot
volumes:
- /opt/wallabag/data:/var/lib/mysql
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
interval: 20s
timeout: 3s
redis:
image: redis:alpine
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 20s
timeout: 3s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment