-
-
Notifications
You must be signed in to change notification settings - Fork 178
/
Copy pathdocker-compose-dev-postgres.yml
43 lines (39 loc) · 1.12 KB
/
docker-compose-dev-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
39
40
41
42
43
version: "3"
services:
postgres:
image: postgres@sha256:888402a8cd6075c5dc83a31f58287f13306c318eaad016661ed12e076f3e6341
healthcheck:
test: psql postgres --command "select 1" -U postgres
ports:
- "5432:5432"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
volumes:
- postgres-volume:/var/lib/postgresql/data
pact-broker:
build: .
ports:
- "9292:9292"
depends_on:
- postgres
environment:
DATABASE_URL: postgres://postgres:postgres@postgres/postgres
PACT_BROKER_HIDE_PACTFLOW_MESSAGES: 'true'
PACT_BROKER_BASE_URL: 'http://localhost:9292 http://pact-broker:9292'
command: -wait tcp://postgres:5432 /usr/local/bin/start
entrypoint: dockerize
volumes:
- ./lib:/home/lib
- ./db:/home/db
- ./config.ru:/home/config.ru
- ./tasks:/home/tasks
- ./Rakefile:/home/Rakefile
shell:
image: ruby:3.2.4-alpine@sha256:867125ca5fed8316e90a5fba593ecb86392073d6d26f44307f4936218d2f5613
depends_on:
- pact-broker
entrypoint: /bin/sh
volumes:
postgres-volume: