-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.wiki.yml
41 lines (37 loc) · 975 Bytes
/
docker-compose.wiki.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
version: "3.3"
services:
wikijs:
build:
context: ./wikijs
args:
ANNOTATE_URL: /viewer/web/viewer.html
command: yarn dev
environment:
ANNOTATE_URL: /viewer/web/viewer.html
POSTGRES_HOST: wikijs_db
POSTGRES_PORT: ${POSTGRES_PORT}
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
volumes:
- ./wikijs/:/usr/src/app/
- /usr/src/app/node_modules
wikijs_db:
image: postgres
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_DB: ${POSTGRES_DB}
restart: always
volumes:
- db_data:/var/lib/postgres
nginx:
image: nginx:latest
depends_on:
- wikijs
ports:
- "80:80"
volumes:
- ./nginx/nginx.wiki.conf:/etc/nginx/nginx.conf
volumes:
db_data: