-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-build.yml
67 lines (60 loc) · 1.33 KB
/
docker-compose-build.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
version: '2'
services:
# Polis PostgreSQL Database
polisdb:
image: uzzal2k5/polis_postgresql:1.0
container_name: polisdb
ports:
- "5432:5432/tcp"
restart: on-failure
# Polis Server
polisserver:
build: polisserver
container_name: polisserver
ports:
- "5000:5000/tcp"
links:
- polisdb
environment:
DATABASE_URL: postgres://polis:polis@polisdb/polis
STATIC_FILES_HOST: clientadmin
restart: on-failure
# Polis Client Admin & Participants
clientparticipant:
build: polisClientParticipation
container_name: clientparticipant
hostname: clientparticipant
environment:
SERVICE_URL: polisserver
links:
- polisserver
ports:
- "5001:5001"
- "8000:8000"
restart: on-failure
# Polis Client Admin
clientadmin:
build: polisClientAdmin
container_name: clientadmin
hostname: clientadmin
environment:
SERVICE_URL: polisserver
links:
- polisserver
ports:
- "5002:5002"
restart: on-failure
# Polis Math Container
math:
build: polismath
container_name: math
hostname: math
environment:
SERVICE_URL: polisserver
DATABASE_URL: postgres://polis:polis@polisdb/polis
links:
- polisserver
- polisdb
ports:
- "8080:8080"
restart: on-failure