-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
64 lines (58 loc) · 1.44 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
version: '3.5'
services:
db:
image: postgres:11.7-alpine
ports:
- "127.0.0.1:5432:5432"
volumes:
- db_data:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=123
api:
build: ./
command: /bin/bash Dockerfiles/docker-entrypoint.sh
volumes:
- ./:/app
- dependencies_cache:/app_dependencies/bundle
ports:
- "3003:3003"
depends_on:
- db
- redis
- broker_app
environment:
- DATABASE_URL=postgresql://postgres:123@db:5432/manager_development
- TEST_DATABASE_URL=postgresql://postgres:123@db:5432/manager_test
- RAILS_ENV=development
- RAILS_LOG_TO_STDOUT=true
- RAILS_SECRET_KEY=b3902a3c892b23a1f6ef0e3a7e145024ea9166844bfce78c21f192d
- REDIS_URL=redis://redis:6379/0
- PROD_DATABASE_URL=
- METRIC_UI_PACT_URI=http://broker_app:80/pacts/provider/metric-provider/consumer/metric-consumer/latest
networks:
- default
- manager_net
redis:
image: redis:5.0.3
ports:
- "127.0.0.1:6379:6379"
broker_app:
image: dius/pact-broker
links:
- db
ports:
- "80:80"
environment:
PACT_BROKER_DATABASE_USERNAME: postgres
PACT_BROKER_DATABASE_PASSWORD: 123
PACT_BROKER_DATABASE_HOST: db
PACT_BROKER_DATABASE_NAME: postgres
networks:
- default
- manager_net
volumes:
db_data:
dependencies_cache:
networks:
manager_net:
name: manager