forked from compdemocracy/polis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
61 lines (47 loc) · 904 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
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
# first build or re-build:
# docker-compose up --build
# otherwise:
# docker-compose up
version: "3.1"
services:
node:
container_name: polis-server
build:
context: .
dockerfile: Dockerfile
depends_on:
- 'postgres'
- 'static'
networks:
- 'polis-dev'
ports:
- "5000:5000"
math:
container_name: polis-math
depends_on:
- 'postgres'
build:
context: https://github.com/pol-is/polisMath.git
postgres:
container_name: polis-db
restart: always
build:
context: .
dockerfile: Dockerfile-db
networks:
- 'polis-dev'
volumes:
- 'backups:/backups'
- 'postgres:/var/lib/postgresql/data'
static:
container_name: polis-static
image: nginx:1.14
networks:
- 'polis-dev'
ports:
- '5002:80'
networks:
polis-dev:
volumes:
backups:
postgres: