-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
194 lines (181 loc) · 4.14 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
version: '3'
services:
test:
image: syncano/platform:test
build:
context: .
dockerfile: Dockerfile.test
privileged: true
depends_on:
- postgresql
- redis
- rabbitmq
user: root
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- .:/home/syncano/app
environment:
- INSTANCE_TYPE=web
- API_HOST=api.syncano.test
- AUTORELOAD=true
- CI
- COLORS_ENABLED=true
- DB_INSTANCES_NAME
- DJANGO_DEBUG=true
- DJANGO_SETTINGS_MODULE=settings.tests
- DOCKER_HOST_DIRECTORY=$PWD
- LEGACY_CODEBOX_ENABLED=true
- PARALLEL_COUNT
- SPACE_HOST=syncano_space.test
- STRIPE_SECRET_KEY
- TEST_MIGRATIONS
- TRACING_SAMPLING
web:
image: syncano/platform:test
build:
context: .
dockerfile: Dockerfile.test
ports:
- "8000"
depends_on:
- postgresql
- redis
- rabbitmq
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- .:/home/syncano/app
environment:
- INSTANCE_TYPE=web
- API_HOST=api.syncano.test
- AUTORELOAD=true
- DEV_S3_ACCESS_KEY_ID
- DEV_S3_SECRET_ACCESS_KEY
- DEV_S3_STORAGE_BUCKET
- DEV_S3_REGION
- COLORS_ENABLED=true
- DB_INSTANCES_NAME
- DJANGO_DEBUG=true
- LEGACY_CODEBOX_ENABLED=true
- SPACE_HOST=syncano_space.test
- STRIPE_SECRET_KEY
- TEST_MIGRATIONS
- TRACING_SAMPLING
proxy:
image: haproxy:1.8-alpine
ports:
- "80:80"
- "90:90"
depends_on:
- web
volumes:
- ./conf/haproxy_test.cfg:/usr/local/etc/haproxy/haproxy.cfg
worker:
image: syncano/platform:test
build:
context: .
dockerfile: Dockerfile.test
depends_on:
- postgresql
- redis
- rabbitmq
volumes:
- .:/home/syncano/app
environment:
- INSTANCE_TYPE=worker
- ANALYTICS_WRITE_KEY
- DEV_S3_ACCESS_KEY_ID
- DEV_S3_SECRET_ACCESS_KEY
- DEV_S3_STORAGE_BUCKET
- DEV_S3_REGION
- COLORS_ENABLED=true
- DJANGO_DEBUG=true
- LEGACY_CODEBOX_ENABLED=true
- STRIPE_SECRET_KEY
- TRACING_SAMPLING
codebox:
image: syncano/platform:test
build:
context: .
dockerfile: Dockerfile.test
privileged: true
depends_on:
- redis
- rabbitmq
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- .:/home/syncano/app
environment:
- INSTANCE_TYPE=codebox
- LEGACY_CODEBOX_RUNNER_CONCURRENCY=2
- COLORS_ENABLED=true
- DJANGO_DEBUG=true
- LEGACY_CODEBOX_ENABLED=true
codebox-broker:
command: codebox --debug broker
image: syncano/codebox
depends_on:
- codebox-lb
ports:
- "9000:8000"
- "8080:8080"
environment:
- LB_ADDRS=codebox-lb:8000
- SERVICE_NAME=codebox-broker
codebox-lb:
command: codebox --debug lb
image: syncano/codebox
environment:
- SERVICE_NAME=codebox-lb
codebox-worker:
command: codebox --debug worker
image: syncano/codebox
privileged: true
depends_on:
- codebox-lb
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /tmp/storage:/home/codebox/storage
environment:
- HOST_STORAGE_PATH=/tmp/storage
- LB_ADDR=codebox-lb:9000
- SERVICE_NAME=codebox-worker
postgresql:
image: postgis/postgis:12-3.1-alpine
environment:
- POSTGRES_USER=syncano
- POSTGRES_PASSWORD=syncano
- POSTGRES_DB=syncano
- PGDATA=/var/lib/postgresql/data/pgdata
volumes:
- ./db/:/docker-entrypoint-initdb.d/
ports:
- "5432"
redis:
image: redis:5-alpine
volumes:
- data-redis:/data
ports:
- "6379"
rabbitmq:
image: rabbitmq:3.8-alpine
volumes:
- data-rabbitmq:/data
ports:
- "5672"
- "15672"
jaeger:
image: jaegertracing/all-in-one:1.17
environment:
- COLLECTOR_ZIPKIN_HTTP_PORT=9411
ports:
- "5775"
- "6831"
- "6832"
- "5778"
- "16686:16686"
- "14268:14268"
- "14250"
- "9411:9411"
volumes:
data-rabbitmq:
data-redis: