-
Notifications
You must be signed in to change notification settings - Fork 26
/
docker-compose.yml
189 lines (169 loc) · 4.35 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
services:
base:
build:
context: ../
dockerfile: .buildkite/Dockerfile
args:
- RUBY_IMAGE
- BUNDLER
- RUBYGEMS
default: &default
image: "${IMAGE_NAME-buildkite_base}"
environment: &default_env
CI:
BUILDKITE:
BUILDKITE_BUILD_ID:
BUILDKITE_JOB_ID:
BUILDKITE_PARALLEL_JOB:
BUILDKITE_PARALLEL_JOB_COUNT:
encrypted_0fb9444d0374_key:
encrypted_0fb9444d0374_iv:
RUBY_YJIT_ENABLE:
# Sauce Labs username and access key. Obfuscated, purposefully not encrypted.
ENCODED: "U0FVQ0VfQUNDRVNTX0tFWT1hMDM1MzQzZi1lOTIyLTQwYjMtYWEzYy0wNmIzZWE2MzVjNDggU0FVQ0VfVVNFUk5BTUU9cnVieW9ucmFpbHM="
BEANSTALK_URL: "beanstalk://beanstalkd"
MEMCACHE_SERVERS: "memcached:11211"
MYSQL_HOST: mysql
MYSQL_PREPARED_STATEMENTS:
PGHOST: postgres
PGUSER: postgres
QC_DATABASE_URL: "postgres://postgres@postgres/active_jobs_qc_int_test"
QUE_DATABASE_URL: "postgres://postgres@postgres/active_jobs_que_int_test"
RABBITMQ_URL: "amqp://guest:guest@rabbitmq:5672"
REDIS_URL: "redis://redis:6379/1"
SELENIUM_DRIVER_URL: "http://chrome:4444/wd/hub"
volumes:
- ../test-reports:/rails/test-reports
depends_on:
redis:
condition: service_healthy
memcached:
condition: service_healthy
tmpfs:
- /rails/tmp:size=1G,exec
postgresdb:
<<: *default
depends_on:
redis:
condition: service_healthy
memcached:
condition: service_healthy
postgres:
condition: service_healthy
mysqldb:
<<: *default
depends_on:
redis:
condition: service_healthy
memcached:
condition: service_healthy
mysql:
condition: service_healthy
mariadb:
<<: *default
environment:
<<: *default_env
MYSQL_HOST: mariadb_service
depends_on:
redis:
condition: service_healthy
memcached:
condition: service_healthy
mariadb_service:
condition: service_healthy
railties:
<<: *default
depends_on:
redis:
condition: service_healthy
memcached:
condition: service_healthy
mysql:
condition: service_healthy
postgres:
condition: service_healthy
activejob:
<<: *default
depends_on:
redis:
condition: service_healthy
memcached:
condition: service_healthy
postgres:
condition: service_healthy
rabbitmq:
condition: service_healthy
beanstalkd:
condition: service_healthy
actionview:
<<: *default
depends_on:
redis:
condition: service_healthy
memcached:
condition: service_healthy
chrome:
condition: service_healthy
memcached:
image: memcached:alpine
healthcheck:
test: echo stats | nc 127.0.0.1 11211
interval: 10s
retries: 60
redis:
image: redis:alpine
healthcheck:
test: ["CMD-SHELL", "redis-cli ping | grep PONG"]
interval: 1s
timeout: 3s
retries: 5
mysql: &mysql-defaults
image: "${MYSQL_IMAGE-mysql:latest}"
healthcheck:
test: mysql -h 127.0.0.1 -P 3306 -e "SELECT 1;"
interval: 1s
retries: 60
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
volumes:
- "./mysql-initdb.d:/docker-entrypoint-initdb.d"
mariadb_service:
<<: *mysql-defaults
healthcheck:
test: healthcheck.sh --su-mysql --connect --innodb_initialized
interval: 1s
retries: 60
postgres:
image: "${POSTGRES_IMAGE-postgres:alpine}"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
environment:
POSTGRES_HOST_AUTH_METHOD: "trust"
rabbitmq:
image: rabbitmq:alpine
healthcheck:
test: rabbitmq-diagnostics -q ping
interval: 30s
timeout: 30s
retries: 3
beanstalkd:
build:
context: ./
dockerfile: Dockerfile.beanstalkd
healthcheck:
test: echo -e "stats\r\n" | nc localhost 11300 || exit 1
interval: 10s
timeout: 10s
retries: 3
start_period: 30s
chrome:
image: seleniarm/standalone-chromium:latest
healthcheck:
test: "curl -f http://localhost:4444/ui || exit 1"
interval: 10s
timeout: 10s
retries: 3
start_period: 30s