-
Notifications
You must be signed in to change notification settings - Fork 18
/
docker-compose.yml
51 lines (50 loc) · 1.28 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
version: '3.6'
services:
test:
image: "ruby:${RUBY_VERSION}"
command: sh -c "rm -f Gemfile.lock && bundle install && bin/run_tests"
environment:
- AR_VERSION=${AR_VERSION}
depends_on:
pg12:
condition: service_healthy
mysql56:
condition: service_healthy
mysql57:
condition: service_healthy
mysql80:
condition: service_healthy
working_dir: /app
volumes:
- bundle:/usr/local/bundle
- .:/app
mysql56:
image: mysql:5.6
environment:
MYSQL_ROOT_PASSWORD: password
command: --innodb-large-prefix --innodb-file-format=barracuda
healthcheck:
test: mysql --password=password -e "show databases;"
mysql57:
image: mysql:5.7
environment:
MYSQL_ROOT_PASSWORD: password
healthcheck:
test: mysql --password=password -e "show databases;"
mysql80:
image: mysql:8.0
command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_ROOT_PASSWORD: password
healthcheck:
test: mysql --password=password -e "show databases;"
pg12:
image: postgres:12
environment:
PGDATA: /data
POSTGRES_DB: db
POSTGRES_HOST_AUTH_METHOD: trust
healthcheck:
test: echo "\\l" | psql -U postgres
volumes:
bundle: