-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
59 lines (55 loc) · 1.33 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
version: '3.7'
services:
api:
build:
context: .
dockerfile: Dockerfile.api
environment:
- LOG_SHORT_TIME=true
- 'LOG_FIELD_BLACKLIST=["caller", "sequence_number"]'
- LOG_LEVEL=debug
- LOG_SQL_QUERIES=true
- DATABASE_URL=postgres://ijci:ijci@postgres/ijci?sslmode=disable
- AMQP_EXCHANGE=ijci
- AMQP_ROUTING_KEY=key
- AMQP_URI=amqp://guest:guest@rabbitmq:5672/
depends_on:
- postgres
- rabbitmq
ports:
- 5000:5000
agent:
build:
context: .
dockerfile: Dockerfile.agent
environment:
- LOG_SHORT_TIME=true
- 'LOG_FIELD_BLACKLIST=["caller", "sequence_number"]'
- LOG_LEVEL=debug
- API_ADDR=http://api:5000
- PUBLIC_HOST=agent
- AMQP_CONSUMER_TAG=ctag
- AMQP_EXCHANGE=ijci
- AMQP_ROUTING_KEY=key
- AMQP_QUEUE_NAME=build-requests
- AMQP_URI=amqp://guest:guest@rabbitmq:5672/
depends_on:
- api
- rabbitmq
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /tmp:/tmp
# External Services
postgres:
image: postgres:10.5
environment:
- POSTGRES_DB=ijci
- POSTGRES_USER=ijci
- POSTGRES_PASSWORD=ijci
ports:
- 5432:5432
rabbitmq:
image: rabbitmq:3-management
ports:
- 5672:5672
- 15672:15672