-
-
Notifications
You must be signed in to change notification settings - Fork 178
/
Copy pathdocker-compose-ci-mysql.yml
38 lines (36 loc) · 1.09 KB
/
docker-compose-ci-mysql.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
version: "3"
services:
mysql:
image: mysql:5.7.44@sha256:4bc6bc963e6d8443453676cae56536f4b8156d78bae03c0145cbe47c2aad73bb
command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_ROOT_PASSWORD: pact_broker
MYSQL_DATABASE: pact_broker
MYSQL_USER: pact_broker
MYSQL_PASSWORD: pact_broker
ports:
- "3306:3306"
tests:
build: .
depends_on:
- mysql
environment:
DATABASE_ADAPTER: docker_compose_mysql
PACT_BROKER_HIDE_PACTFLOW_MESSAGES: 'true'
volumes:
- ./lib:/home/lib
- ./spec:/home/spec
- ./db:/home/db
- ./config.ru:/home/config.ru
- ./tasks:/home/tasks
- ./Rakefile:/home/Rakefile
- ./config:/home/config
- ./.rspec:/home/.rspec
- ./.rubocop:/home/.rubocop
- ./.gitignore:/home/.gitignore
- ./public:/home/public
- ./script/docker-container/test.sh:/usr/local/bin/test
- ./docs:/home/docs
- ./pact_broker_oas.yaml:/home/pact_broker_oas.yaml
entrypoint: dockerize
command: --wait tcp://mysql:3306 -timeout 60s test