-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
59 lines (57 loc) · 1.26 KB
/
docker-compose.yaml
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.8"
services:
rabbitmq:
# We will use RabbitMQ locally instead of SQS
platform: "linux/amd64"
image: rabbitmq:3-management
hostname: 'rabbitlocal'
ports:
- 15672:15672
- 5672:5672
volumes:
- "rabbitmq-log:/var/log/rabbitmq"
- "rabbitmq-data:/var/lib/rabbitmq"
deploy:
restart_policy:
condition: any
work_supplier:
# platform: "linux/amd64"
# cap_add:
# - SYS_PTRACE
depends_on:
- rabbitmq
build:
context: .
target: main-vanilla
args:
TARGET_PACKAGE: "work-supplier"
environment:
RABBIT_SERVER_URL: amqp://guest:guest@rabbitmq:5672/
QUEUE_URL: rabbit://data-ingress
ports:
- "8080:8080"
deploy:
restart_policy:
condition: on-failure
delay: 5s
work_consumer:
# platform: "linux/amd64"
# cap_add:
# - SYS_PTRACE
depends_on:
- rabbitmq
build:
context: .
target: main-vanilla
args:
TARGET_PACKAGE: "work-consumer"
environment:
RABBIT_SERVER_URL: amqp://guest:guest@rabbitmq:5672/
QUEUE_URL: rabbit://data-egress
deploy:
restart_policy:
condition: on-failure
delay: 5s
volumes:
rabbitmq-data:
rabbitmq-log: