Created
March 18, 2024 04:01
-
-
Save herbertUG/5f233fd7690ea2bfbf81870334b0bbb8 to your computer and use it in GitHub Desktop.
Set up docker with bookstack and nginx_proxy_manager
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
version: "2" | |
services: | |
bookstack: | |
image: lscr.io/linuxserver/bookstack | |
container_name: bookstack | |
environment: | |
- PUID=1000 | |
- PGID=1000 | |
- APP_URL=http://<yoururl>:6875 | |
- DB_HOST=bookstack_db | |
- DB_USER=bookstack | |
- DB_PASS=bookstack | |
- DB_DATABASE=bookstackapp | |
volumes: | |
- ./bookstackdata:/config | |
ports: | |
- 6875:80 | |
restart: unless-stopped | |
depends_on: | |
- bookstack_db | |
bookstack_db: | |
image: lscr.io/linuxserver/mariadb | |
container_name: bookstack_db | |
environment: | |
- PUID=1000 | |
- PGID=1000 | |
- MYSQL_ROOT_PASSWORD=bookstackroot | |
- TZ=Europe/Warsaw | |
- MYSQL_DATABASE=bookstackapp | |
- MYSQL_USER=bookstack | |
- MYSQL_PASSWORD=bookstack | |
volumes: | |
- ./bookstackdbdata:/config | |
ports: | |
- 3306:3306 | |
restart: unless-stopped | |
proxy: | |
image: 'jc21/nginx-proxy-manager:latest' | |
container_name: nginx_proxy_manager | |
ports: | |
# Public HTTP Port: | |
- '80:80' | |
# Public HTTPS Port: | |
- '443:443' | |
# Admin Web Port: | |
- '81:81' | |
environment: | |
# If you would rather use Sqlite uncomment this | |
# and remove all DB_MYSQL_* lines above | |
DB_SQLITE_FILE: "/data/database.sqlite" | |
# Uncomment this if IPv6 is not enabled on your host | |
# DISABLE_IPV6: 'true' | |
volumes: | |
- ./proxy/data:/data | |
- ./proxy/letsencrypt:/etc/letsencrypt | |
restart: unless-stopped | |
networks: | |
default: | |
external: | |
name: web |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment