-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yml
107 lines (100 loc) · 2.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
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
---
services:
ruby-3.3:
build:
context: ./
dockerfile: ./compose/Dockerfile.ruby-3.3
volumes:
- ./:/srv
- ruby-3.3-gems:/usr/local/bundle
depends_on:
postgres-14:
condition: service_healthy
postgres-10:
condition: service_healthy
mysql-8:
condition: service_healthy
ruby-3.2:
build:
context: ./
dockerfile: ./compose/Dockerfile.ruby-3.2
volumes:
- ./:/srv
- ruby-3.2-gems:/usr/local/bundle
depends_on:
postgres-14:
condition: service_healthy
postgres-10:
condition: service_healthy
mysql-8:
condition: service_healthy
ruby-3.1:
build:
context: ./
dockerfile: ./compose/Dockerfile.ruby-3.1
volumes:
- ./:/srv
- ruby-3.1-gems:/usr/local/bundle
depends_on:
postgres-14:
condition: service_healthy
postgres-10:
condition: service_healthy
mysql-8:
condition: service_healthy
ruby-3.0:
build:
context: ./
dockerfile: ./compose/Dockerfile.ruby-3.0
volumes:
- ./:/srv
- ruby-3.0-gems:/usr/local/bundle
depends_on:
postgres-14:
condition: service_healthy
postgres-10:
condition: service_healthy
mysql-8:
condition: service_healthy
postgres-14:
image: postgres:14.8
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
- POSTGRES_PASSWORD
volumes:
- postgres-14:/var/lib/postgresql/data
healthcheck:
test: ["CMD", "pg_isready", "-U", "postgres"]
interval: 10s
timeout: 5s
retries: 5
postgres-10:
image: postgres:10.23-bullseye
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
- POSTGRES_PASSWORD
volumes:
- postgres-10:/var/lib/postgresql/data
healthcheck:
test: ["CMD", "pg_isready", "-U", "postgres"]
interval: 10s
timeout: 5s
retries: 5
mysql-8:
image: mysql:8.0
environment:
- MYSQL_ALLOW_EMPTY_PASSWORD=1
volumes:
- mysql-8:/var/lib/mysql
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
timeout: 20s
retries: 10
volumes:
postgres-14:
postgres-10:
mysql-8:
ruby-3.3-gems:
ruby-3.2-gems:
ruby-3.1-gems:
ruby-3.0-gems: