-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
127 lines (121 loc) · 2.79 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
version: "3"
services:
# frontend1:
# build: ./frontend
# ports:
# - "80"
# labels:
# kompose.image-pull-policy: IfNotPresent
# frontend2:
# build: ./frontend
# ports:
# - "80"
# labels:
# kompose.image-pull-policy: IfNotPresent
# frontend-balancer:
# build: ./frontend-balancer
# links:
# - frontend1
# - frontend2
# ports:
# - "3000:80"
# labels:
# kompose.service.type: nodeport
# kompose.image-pull-policy: IfNotPresent
frontend:
build: ./frontend
ports:
- "3000:80"
image: localhost:5000/frontend
labels:
kompose.service.type: nodeport
kompose.image-pull-policy: IfNotPresent
backend-database:
image: postgres
environment:
- POSTGRES_PASSWORD=jizzle
ports:
- 5432:5432
labels:
kompose.image-pull-policy: IfNotPresent
backend:
build: ./backend
environment:
- IS_CONTAINER=1
- TWATTER_DB_HOST=backend-database
- TWATTER_DB_PW=jizzle
- TWATTER_GITHUB_CLIENT_SECRET=${TWATTER_GITHUB_CLIENT_SECRET}
- TWATTER_IMGUR_CLIENT_ID=${TWATTER_IMGUR_CLIENT_ID}
links:
- backend-database
- posts-service
- charts-service
ports:
- "8080:8080"
image: localhost:5000/backend
labels:
kompose.service.type: nodeport
kompose.image-pull-policy: IfNotPresent
# posts
posts-database:
image: postgres
environment:
- "POSTGRES_PASSWORD=jizzle"
ports:
- "5432"
labels:
kompose.image-pull-policy: IfNotPresent
posts-service:
build: ./post-service
environment:
- IS_CONTAINER=1
- TWATTER_DB_HOST=posts-database
links:
- posts-database
ports:
- "34566"
image: localhost:5000/posts-service
labels:
kompose.image-pull-policy: IfNotPresent
# charts
charts-database:
image: postgres
environment:
- "POSTGRES_PASSWORD=jizzle"
ports:
- "5432"
labels:
kompose.image-pull-policy: IfNotPresent
charts-service:
build: ./charts-service
environment:
- IS_CONTAINER=1
- TWATTER_DB_HOST=charts-database
links:
- charts-database
ports:
- "34567"
image: localhost:5000/charts-database
labels:
kompose.image-pull-policy: IfNotPresent
# whiteboard
whiteboards-database:
image: postgres
environment:
- "POSTGRES_PASSWORD=jizzle"
ports:
- "5432"
labels:
kompose.image-pull-policy: IfNotPresent
whiteboards-service:
build: ./whiteboard-service
environment:
- IS_CONTAINER=1
links:
- whiteboards-database
ports:
- "34343:34343"
image: localhost:5000/whiteboards-database
labels:
kompose.service.type: nodeport
kompose.image-pull-policy: IfNotPresent