-
-
Notifications
You must be signed in to change notification settings - Fork 177
/
docker-compose-ci-postgres.yml
38 lines (36 loc) · 1.07 KB
/
docker-compose-ci-postgres.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:
postgres:
image: postgres:${POSTGRES_DOCKER_IMAGE_TAG:-latest}
logging:
driver: none
healthcheck:
test: psql postgres --command "select 1" -U postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
tests:
build: .
depends_on:
- postgres
environment:
PACT_BROKER_TEST_DATABASE_URL: postgres://postgres:postgres@postgres/postgres
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://postgres:5432 -timeout 60s test