-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
60 lines (57 loc) · 1.67 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
networks:
frontend:
name: frontend
external: false
backend:
name: backend
external: false
services:
wiki:
image: requarks/wiki
restart: unless-stopped
container_name: smr-wiki
networks:
- frontend
- backend
environment:
SESSION_SECRET: ${SESSION_SECRET}
WIKI_ADMIN_EMAIL: ${WIKI_ADMIN_EMAIL}
HOST: ${HOST}
FACEBOOK_APP_ID: ${FACEBOOK_APP_ID}
FACEBOOK_APP_SECRET: ${FACEBOOK_APP_SECRET}
GITHUB_CLIENT_ID: ${GITHUB_CLIENT_ID}
GITHUB_CLIENT_SECRET: ${GITHUB_CLIENT_SECRET}
volumes:
- ./config.yml:/var/wiki/config.yml:ro
- ./wiki-data.pem:/github.pem
labels:
- "traefik.enable=true"
- "traefik.http.services.wiki.loadbalancer.server.port=80"
- "traefik.http.routers.wiki.rule=Host(`wiki.smrealms.de`)"
depends_on:
- wiki-db
wiki-db:
image: mongo:3
restart: unless-stopped
networks:
- backend
volumes:
- ./db:/data/db
- ./backup:/backup
wiki2:
image: requarks/wiki:2
restart: unless-stopped
container_name: smr-wiki2
networks:
- frontend
- backend
user: root
environment:
DB_TYPE: sqlite
DB_FILEPATH: /db/wiki.sqlite
volumes:
- ./wiki-db/:/db/
labels:
- "traefik.enable=true"
- "traefik.http.services.wiki.loadbalancer.server.port=3000"
- "traefik.http.routers.wiki.rule=Host(`wiki.smrealms.de`)"