-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
82 lines (75 loc) · 1.53 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
version: "3.6"
services:
postgres:
image: postgres:latest
hostname: postgres
restart: always
networks:
greece:
aliases:
- postgres
ports:
- "5432:5432"
environment:
- DEBUG=false
- DB_USER=gotoschool
- DB_PASS=goto1234
- DB_NAME=drachma
- POSTGRES_DB=drachma
- POSTGRES_DATABASE=drachma
- POSTGRES_USER=gotoschool
- POSTGRES_PASSWORD=goto1234
volumes:
- /tmp/postgresql:/var/lib/postgresql
restart:
on-failure
syracuse:
image: gotoschool/syracuse:v0.0.1
container_name: syracuse
hostname: syracuse
networks:
greece:
aliases:
- syracuse
environment:
PORT: 8001
POSTGRES_DSN: "postgres://gotoschool:goto1234@postgres:5432/drachma?sslmode=disable"
depends_on:
- postgres
restart:
on-failure
sicily:
image: gotoschool/sicily:v0.0.1
container_name: sicily
hostname: sicily
networks:
greece:
aliases:
- sicily
ports:
- "3000:3000"
environment:
PORT: 3000
CITIZENS_HOST: "syracuse"
CITIZENS_PORT: 8001
PALERMO_HOST: "palermo"
PALERMO_PORT: 8003
depends_on:
- syracuse
- palermo
restart:
on-failure
palermo:
image: gotoschool/palermo:v0.0.1
container_name: palermo
hostname: palermo
networks:
greece:
aliases:
- palermo
environment:
PORT: 8003
restart:
on-failure
networks:
greece: {}