-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
34 lines (30 loc) · 1014 Bytes
/
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
# compose file for wiki-js
# 3 services: mongo for the mongoDB, wiki for wiki-js itself, and nginw for SSL support
# do not change service names, they are use in config file sin the docker images (wiki connects to 'mongo' and nginx connects to 'wiki')
# only port 443 is exposed. all others are internal to the default network automatically created by compose.
version: '3'
services:
mongo:
image: mongo
volumes:
- "mongo-db:/data/db"
# mongo-db volume is created for data persistence
wiki:
build: ./wiki
volumes:
- "/Users/didier//wiki/repo:/var/wiki/repo:rw,z"
# - "/data/docker/persistent/wiki/repo:/var/wiki/repo:rw,z"
# local git repository for wiki-js will be in /data/docker/persistent/wiki/repo
environment:
- WIKI_HOST=https://127.0.0.1:443 # Change hostname here if required
- WIKI_ADMIN_EMAIL=admin@example.com
depends_on:
- "mongo"
nginx:
build: ./nginx
ports:
- "443:443"
depends_on:
- "wiki"
volumes:
mongo-db: