-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
executable file
·71 lines (62 loc) · 1.45 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
61
62
63
64
65
66
67
68
version: '2'
services:
# Polis PostgreSQL Database
polisdb:
image: uzzal2k5/polis_postgresql:1.0
container_name: polisdb
hostname: polisdb
ports:
- "5432:5432/tcp"
restart: on-failure
# Polis Server
polisserver:
image: uzzal2k5/polis_server:latest
container_name: polisserver
hostname: polisserver
ports:
- "5000:5000/tcp"
links:
- polisdb
environment:
DATABASE_URL: postgres://polis:polis@polisdb:5432/polis
STATIC_FILES_HOST: clientadmin
restart: on-failure
# Polis Client Admin
clientadmin:
image: uzzal2k5/polis_clientadmin:latest
container_name: clientadmin
hostname: clientadmin
environment:
SERVICE_URL: polisserver
links:
- polisserver
ports:
- "5002:5002"
restart: on-failure
# Polis Client Participants
clientparticipant:
image: uzzal2k5/polis_clientparticipation:latest
container_name: clientparticipant
hostname: clientparticipant
environment:
SERVICE_URL: polisserver
links:
- polisserver
ports:
- "5001:5001"
- "8000:8000"
restart: on-failure
# Polis Math Container
math:
image: uzzal2k5/polis_math:1.0
container_name: math
hostname: math
environment:
SERVICE_URL: polisserver
DATABASE_URL: postgres://polis:polis@polisdb:5432/polis
links:
- polisserver
- polisdb
ports:
- "8080:8080"
restart: on-failure