-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.ci.yml
192 lines (173 loc) · 4.26 KB
/
docker-compose.ci.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
version: "3.7"
services:
selenium-hub:
image: selenium/hub:3.141.59-20200525
container_name: selenium-hub
ports:
- "4444:4444"
chrome:
image: selenium/node-chrome:3.141.59-20200525
volumes:
- /dev/shm:/dev/shm
depends_on:
- selenium-hub
environment:
- HUB_HOST=selenium-hub
- HUB_PORT=4444
# firefox:
# image: selenium/node-firefox:3.141.59-20200525
# volumes:
# - /dev/shm:/dev/shm
# depends_on:
# - selenium-hub
# environment:
# - HUB_HOST=selenium-hub
# - HUB_PORT=4444
# opera:
# image: selenium/node-opera:3.141.59-20200525
# volumes:
# - /dev/shm:/dev/shm
# depends_on:
# - selenium-hub
# environment:
# - HUB_HOST=selenium-hub
# - HUB_PORT=4444
nginx:
build:
context: ./services/nginx
dockerfile: Dockerfile.staging
ports:
- 80:80
env_file:
- ./.env.ci
depends_on:
- player
- room_settings
- spotify_login_handler
- typeahead
command: '/bin/sh -c ''while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g "daemon off;"'''
room_settings:
build: ./services/room_settings
command: gunicorn --bind 0.0.0.0:5000 app:app
env_file:
- ./.env.ci
environment:
- SPOTIFY_CLIENT_ID=$SPOTIFY_CLIENT_ID
- SPOTIFY_CLIENT_SECRET=$SPOTIFY_CLIENT_SECRET
depends_on:
- redis
- rabbitmq
spotify_login_handler:
build: ./services/spotify_login_handler
volumes:
- ./services/spotify_login_handler/:/usr/src/app/
ports:
- 5003:5003
env_file:
- ./.env.ci
environment:
- SPOTIFY_CLIENT_ID=$SPOTIFY_CLIENT_ID
- SPOTIFY_CLIENT_SECRET=$SPOTIFY_CLIENT_SECRET
depends_on:
- redis
- rabbitmq
create_or_update_user:
build: ./services/user/workers/create_or_update_user
volumes:
- ./services/user/workers/create_or_update_user/:/usr/src/app/
depends_on:
- rabbitmq
- postgres
env_file:
- ./.env.ci
environment:
- SPOTIFY_CLIENT_ID=$SPOTIFY_CLIENT_ID
- SPOTIFY_CLIENT_SECRET=$SPOTIFY_CLIENT_SECRET
player:
build: ./services/player
command: gunicorn --bind 0.0.0.0:5002 app:app
env_file:
- ./.env.ci
environment:
- SPOTIFY_CLIENT_ID=$SPOTIFY_CLIENT_ID
- SPOTIFY_CLIENT_SECRET=$SPOTIFY_CLIENT_SECRET
depends_on:
- redis
create_play:
build: ./services/player/workers/create_play
volumes:
- ./services/player/workers/create_play/:/usr/src/app/
env_file:
- ./.env.ci
depends_on:
- redis
- rabbitmq
typeahead:
build: ./services/typeahead
command: gunicorn --bind 0.0.0.0:5001 app:app
env_file:
- ./.env.ci
environment:
- SPOTIFY_CLIENT_ID=$SPOTIFY_CLIENT_ID
- SPOTIFY_CLIENT_SECRET=$SPOTIFY_CLIENT_SECRET
depends_on:
- redis
make_authorized_request:
build: ./services/authorizer/workers/make_authorized_request
env_file:
- ./.env.ci
environment:
- SPOTIFY_CLIENT_ID=$SPOTIFY_CLIENT_ID
- SPOTIFY_CLIENT_SECRET=$SPOTIFY_CLIENT_SECRET
depends_on:
- redis
- rabbitmq
create_authorization:
build: ./services/authorizer/workers/create_authorization
env_file:
- ./.env.ci
environment:
- SPOTIFY_CLIENT_ID=$SPOTIFY_CLIENT_ID
- SPOTIFY_CLIENT_SECRET=$SPOTIFY_CLIENT_SECRET
depends_on:
- redis
- rabbitmq
- postgres
refresh_authorization:
build: ./services/authorizer/workers/refresh_authorization
env_file:
- ./.env.ci
environment:
- SPOTIFY_CLIENT_ID=$SPOTIFY_CLIENT_ID
- SPOTIFY_CLIENT_SECRET=$SPOTIFY_CLIENT_SECRET
depends_on:
- redis
- rabbitmq
- postgres
redis:
image: redis:6
command: ["redis-server", "--appendonly", "yes"]
volumes:
- redis-data:/data
rabbitmq:
hostname: rabbitmq
image: rabbitmq:3-management
env_file:
- ./.env.ci
ports:
- 15672:15672
postgres:
image: postgres:12
env_file:
- ./.env.ci
volumes:
- postgres-data:/var/lib/postgresql/data/
pgmanager:
build: ./services/postgres
env_file:
- ./.env.ci
depends_on:
- postgres
volumes:
postgres-data:
redis-data: