-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
71 lines (66 loc) · 1.7 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
version: "3.7"
# https://docs.docker.com/compose/compose-file/compose-file-v3/
services:
caddy:
image: caddy:latest
# https://hub.docker.com/_/caddy
volumes:
- bookstack_public:/var/www/bookstack/public
- caddy_data:/data
- ./bookstack_caddyfile:/etc/caddy/Caddyfile
networks:
- bookstack
ports:
# CHANGE TO "80:80" IF USING CADDY FOR HTTPS
- "9080:80"
# UNCOMMENT IF USING CADDY FOR HTTPS
# - "443:443"
environment:
# https://caddyserver.com/docs/automatic-https#overview
- DOMAIN=:80
mariadb:
image: mariadb:latest
# https://hub.docker.com/_/mariadb
volumes:
- bookstack_db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=CHANGEME
- MYSQL_DATABASE=bookstack
- MYSQL_USER=bookstack
- MYSQL_PASSWORD=CHANGEME
networks:
- bookstack_db
bookstack:
image: zeigren/bookstack:latest # ghcr.io/zeigren/bookstack_docker:latest
# https://hub.docker.com/r/zeigren/bookstack
environment:
- DB_PASSWORD=CHANGEME
- APP_URL=https://bookstack.yourdomain.test
# Can be 'local', 'local_secure' or 's3'
- STORAGE_TYPE=local
# Run first without APP_KEY to have the container create one
# - APP_KEY=
volumes:
- bookstack_storage:/var/www/bookstack/storage
- bookstack_public:/var/www/bookstack/public
depends_on:
- mariadb
- redis
networks:
- bookstack
- bookstack_db
- redis
redis:
image: redis:alpine
# https://hub.docker.com/_/redis
networks:
- redis
volumes:
bookstack_db:
bookstack_storage:
bookstack_public:
caddy_data:
networks:
bookstack:
bookstack_db:
redis: