-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-cloud-prod.yml
88 lines (80 loc) · 1.9 KB
/
docker-cloud-prod.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
83
84
85
86
87
88
version: "3.6"
services:
#Postgres database server
postgres:
image: overseaslabs/example-postgres:1.0.0
networks:
- example_backend
volumes:
- example_postgres_db:/var/lib/postgresql/data/pgdata
ports:
- 5432:5432
env_file:
- postgres.env
- ureg.env
- .env
- kong.env
- mailer.env
- konga.env
#Kong API gate
kong:
image: overseaslabs/example-kong:1.0.0
env_file:
- .env
- kong.env
networks:
- example_backend
- example_frontend
ports:
- 8000:8000
- 8001:8001
#Kong UI
konga:
image: pantsel/konga:latest
env_file: konga.env
networks:
- example_backend
- example_frontend
ports:
- 1337:1337
#Redis server
redis:
image: redis:latest
networks:
- example_backend
volumes:
- example_redis:/var/lib/postgresql/data/pgdata
ports:
- 6379:6379
#User registry microservice
ureg:
image: overseaslabs/example-ureg:1.0.0
networks:
- example_backend
- example_frontend
env_file:
- ureg.env
#Email sending and reporting
mailer:
image: overseaslabs/example-mailer:1.0.1
networks:
- example_backend
env_file:
- mailer.env
#Web UI
web:
image: overseaslabs/example-web:1.0.0
ports:
- 80:8080
networks:
- example_backend
- example_frontend
volumes:
#named volumes for storing the DB files
example_postgres_db:
example_redis:
networks:
example_frontend:
driver: "overlay"
example_backend:
driver: "overlay"