-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
48 lines (39 loc) · 1021 Bytes
/
Copy pathdocker-compose.yaml
File metadata and controls
48 lines (39 loc) · 1021 Bytes
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
version: '3'
services:
producer:
build:
dockerfile: Dockerfile
context: .
depends_on:
- localstack
volumes:
- .:/usr/src/app
links:
- localstack
stdin_open: true
tty: true
command: python producer.py
environment:
COPILOT_SNS_TOPIC_ARNS: '{"simple_queue": "arn:aws:sns:us-east-1:000000000000:simple-queue"}'
consumer:
build:
dockerfile: Dockerfile
context: .
depends_on:
- localstack
- producer
volumes:
- .:/usr/src/app
stdin_open: true
tty: true
command: python consumer.py
environment:
COPILOT_QUEUE_URI: http://172.18.0.5:4566/000000000000/simple-queue
MAX_NUMBER_OF_MESSAGES: 1
WAIT_TIME_SECONDS: 2
localstack:
container_name: "${LOCALSTACK_DOCKER_NAME-localstack_main}"
image: localstack/localstack
ports:
- "127.0.0.1:4566:4566" # LocalStack Gateway
- "127.0.0.1:4510-4559:4510-4559" # external services port range