forked from privacysandbox/privacy-sandbox-demos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
233 lines (216 loc) · 5.33 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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
version: "3.8"
volumes:
home_node_modules:
news_node_modules:
shop_node_modules:
travel_node_modules:
dsp_node_modules:
dsp_a_node_modules:
dsp_b_node_modules:
ssp_node_modules:
ssp_top_node_modules:
ssp_a_node_modules:
ssp_b_node_modules:
topics_node_modules:
topics-server_node_modules:
ad_server_node_modules:
services:
home:
image: gcr.io/privacy-sandbox-demos/home:latest
build: ./services/home
container_name: "sandcastle_home"
hostname: ${HOME_HOST:?err}
env_file:
- .env
networks:
- adnetwork
news:
image: gcr.io/privacy-sandbox-demos/news:latest
build: ./services/news
container_name: "sandcastle_news"
hostname: ${NEWS_HOST:?err}
env_file:
- .env
volumes:
- ./services/news:/workspace
- news_node_modules:/workspace/node_modules
networks:
- adnetwork
shop:
image: gcr.io/privacy-sandbox-demos/shop:latest
build: ./services/shop
container_name: "sandcastle_shop"
hostname: ${SHOP_HOST:?err}
env_file:
- .env
volumes:
- ./services/shop:/workspace
- shop_node_modules:/workspace/node_modules
networks:
- adnetwork
travel:
image: gcr.io/privacy-sandbox-demos/travel:latest
build: ./services/travel
container_name: "sandcastle_travel"
hostname: ${TRAVEL_HOST:?err}
env_file:
- .env
volumes:
- ./services/travel:/workspace
- travel_node_modules:/workspace/node_modules
networks:
- adnetwork
dsp:
image: gcr.io/privacy-sandbox-demos/dsp:latest
build: ./services/dsp
container_name: "sandcastle_dsp"
hostname: ${DSP_HOST:?err}
env_file:
- .env
volumes:
- ./services/dsp:/workspace
- dsp_node_modules:/workspace/node_modules
networks:
- adnetwork
dsp-a:
image: gcr.io/privacy-sandbox-demos/dsp-a:latest
build: ./services/dsp-a
container_name: "sandcastle_dsp_a"
hostname: ${DSP_A_HOST:?err}
env_file:
- .env
volumes:
- ./services/dsp-a:/workspace
- dsp_a_node_modules:/workspace/node_modules
networks:
- adnetwork
dsp-b:
image: gcr.io/privacy-sandbox-demos/dsp-b:latest
build: ./services/dsp-b
container_name: "sandcastle_dsp_b"
hostname: ${DSP_B_HOST:?err}
env_file:
- .env
volumes:
- ./services/dsp-b:/workspace
- dsp_b_node_modules:/workspace/node_modules
networks:
- adnetwork
ssp:
image: gcr.io/privacy-sandbox-demos/ssp:latest
build: ./services/ssp
container_name: "sandcastle_ssp"
hostname: ${SSP_HOST:?err}
env_file:
- .env
volumes:
- ./services/ssp:/workspace
- ssp_node_modules:/workspace/node_modules
networks:
- adnetwork
ssp-a:
image: gcr.io/privacy-sandbox-demos/ssp-a:latest
build: ./services/ssp-a
container_name: "sandcastle_ssp_a"
hostname: ${SSP_A_HOST:?err}
env_file:
- .env
volumes:
- ./services/ssp-a:/workspace
- ssp_a_node_modules:/workspace/node_modules
networks:
- adnetwork
ssp-b:
image: gcr.io/privacy-sandbox-demos/ssp-b:latest
build: ./services/ssp-b
container_name: "sandcastle_ssp_b"
hostname: ${SSP_B_HOST:?err}
env_file:
- .env
volumes:
- ./services/ssp-b:/workspace
- ssp_b_node_modules:/workspace/node_modules
networks:
- adnetwork
ad-server:
image: gcr.io/privacy-sandbox-demos/ad-server:latest
build: ./services/ad-server
container_name: "sandcastle_ad_server"
hostname: ${AD_SERVER_HOST:?err}
env_file:
- .env
volumes:
- ./services/ad-server:/workspace
- ad_server_node_modules:/workspace/node_modules
networks:
- adnetwork
collector:
image: gcr.io/privacy-sandbox-demos/collector:latest
build: ./services/collector
container_name: "sandcastle_collector"
hostname: ${COLLECTOR_HOST:?err}
env_file:
- .env
volumes:
- ./services/collector:/workspace
networks:
- adnetwork
topics:
image: gcr.io/privacy-sandbox-demos/topics:latest
build: ./services/topics
container_name: "sandcastle_topics"
env_file:
- .env
volumes:
- ./services/topics:/workspace
- topics_node_modules:/workspace/node_modules
networks:
- adnetwork
topics-server:
image: gcr.io/privacy-sandbox-demos/topics-server:latest
build: ./services/topics-server
container_name: "sandcastle_topics-server"
hostname: ${TOPICS_SERVER_HOST:?err}
env_file:
- .env
volumes:
- ./services/topics-server:/workspace
- topics-server_node_modules:/workspace/node_modules
networks:
- adnetwork
nginx:
image: nginx:1.22.1-alpine
container_name: "proxy"
volumes:
# using env variables in nginx config
- type: bind
source: "./nginx/nginx.conf"
target: "/etc/nginx/templates/default.conf.template"
- type: bind
source: "./nginx/cert"
target: "/cert"
networks:
- adnetwork
ports:
- "${EXTERNAL_PORT}:443"
env_file:
- .env
depends_on:
- home
- news
- shop
- travel
- ssp
- ssp-a
- ssp-b
- dsp
- dsp-a
- dsp-b
- ad-server
- collector
- topics
- topics-server
networks:
adnetwork:
name: sandcastle-network
driver: bridge