forked from trilogy-libraries/trilogy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
40 lines (39 loc) · 1.07 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
version: "3.5"
services:
db:
image: "mysql:${MYSQL_VERSION}-debian"
command:
- --sql_mode=NO_ENGINE_SUBSTITUTION
- --server-id=1
- --gtid-mode=ON
- --enforce-gtid-consistency=ON
- --log-bin=mysql-bin.log
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: 1
MYSQL_DATABASE: test
MYSQL_HOST: db.local
volumes:
- "db-data:/var/lib/mysql"
- ./docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
app:
image: ghcr.io/trilogy-libraries/trilogy/ci-app:distro-${DISTRIBUTION_SLUG}-ruby-${RUBY_VERSION}-mysql-${MYSQL_VERSION}
privileged: true
build:
context: .
args:
- DISTRIBUTION=${DISTRIBUTION}
- RUBY_VERSION=${RUBY_VERSION}
cache_from:
- ghcr.io/trilogy-libraries/trilogy/ci-app:distro-${DISTRIBUTION_SLUG}-ruby-${RUBY_VERSION}-mysql-${MYSQL_VERSION}
environment:
MYSQL_HOST: db.local
TRILOGY_TEST_CERTS: "/db-data"
depends_on:
- db
links:
- "db:db.local"
- "db:wildcard.db.local"
volumes:
- "db-data:/db-data"
volumes:
db-data: