-
Notifications
You must be signed in to change notification settings - Fork 72
/
docker-compose.yml
40 lines (40 loc) · 1.26 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
services:
db:
platform: linux/x86_64
image: "ghcr.io/trilogy-libraries/trilogy/ci-mysql:${MYSQL_VERSION}-debian"
build:
context: .
dockerfile: test/mysql/Dockerfile
args:
- MYSQL_VERSION=${MYSQL_VERSION}
cache_from:
- ghcr.io/trilogy-libraries/trilogy/ci-mysql:${MYSQL_VERSION}-debian
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: 1
MYSQL_DATABASE: test
MYSQL_HOST: db.local
volumes:
- ./tmp/mysql-certs:/mysql-certs
- ./test/mysql/conf.d:/etc/mysql/conf.d
- ./test/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:
- BUILDKIT_INLINE_CACHE=1
- 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: "/mysql-certs"
depends_on:
- db
links:
- "db:db.local"
- "db:wildcard.db.local"
volumes:
- "./tmp/mysql-certs:/mysql-certs"