-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
104 lines (97 loc) · 2.76 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
version: '3.7'
services:
db:
image: mariadb:10.5
restart: unless-stopped
environment:
- TZ=${APP_TIMEZONE}
- MYSQL_ROOT_PASSWORD=${DB_ROOT_PASS}
- MYSQL_DATABASE=${DB_DATABASE}
- MYSQL_USER=${DB_USERNAME}
- MYSQL_PASSWORD=${DB_PASSWORD}
volumes:
- db-data:/var/lib/mysql
networks:
- backend
cache:
image: redis:6-alpine
restart: unless-stopped
environment:
- TZ=${APP_TIMEZONE}
volumes:
- cache:/data/
networks:
- backend
app:
image: jjtc/bookstack-ppm:0.31.6-r0
init: true
build: ./app/
restart: unless-stopped
depends_on:
- db
- cache
volumes:
- .env:/app/.env:rw
- ./app/ppm.json:/app/ppm.json:ro
- ./app/php.ini:/etc/php7/php.ini:ro
- ./app/nginx.conf:/etc/nginx/nginx.conf:ro
- ./app/default.conf:/etc/nginx/sites-enabled/default:ro
- uploads:/app/public/uploads:rw
- storage:/app/public/storage:rw
expose:
- "8888/tcp"
networks:
- web
- backend
labels:
- "traefik.enable=true"
- "traefik.http.routers.bookstack.entrypoints=http"
- "traefik.http.routers.bookstack.rule=Host(`${APP_URL_BASE}`)"
- "traefik.http.routers.bookstack-secure.entrypoints=https"
- "traefik.http.routers.bookstack-secure.rule=Host(`${APP_URL_BASE}`)"
- "traefik.http.routers.bookstack-secure.tls=true"
- "traefik.http.routers.bookstack-secure.tls.certresolver=default"
- "traefik.http.routers.bookstack-secure.service=bookstack"
- "traefik.http.services.bookstack.loadbalancer.server.scheme=http"
- "traefik.http.services.bookstack.loadbalancer.server.port=8888"
# av:
# image: jjtc/av:0.100.0-r0
# build: ./av/
# restart: unless-stopped
# tty: true
# environment:
# - TZ=${TZ}
# volumes:
# - ./av/conf/:/etc/clamav/
# networks:
# - backend
# labels:
# - "traefik.enable=false"
#traefik:
# image: traefik:2.4
# restart: unless-stopped
# security_opt:
# - no-new-privileges:true
# command:
# - --entrypoints.web.address=:80
# - --entrypoints.websecure.address=:443
# - --providers.docker=true
- # - --certificatesresolvers.leresolver.acme.caserver=https://acme-staging-v02.api.letsencrypt.org/directory
# - --certificatesresolvers.leresolver.acme.storage=/acme.json
# - --certificatesresolvers.leresolver.acme.tlschallenge=true
# ports:
# - "80:80/tcp"
# - "443:443/tcp
# volumes:
# - "/var/run/docker.sock:/var/run/docker.sock:ro"
# - "./acme.json:/acme.json:rw"
networks:
backend:
web:
external: true
volumes:
db-data:
cache:
uploads:
storage: