-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.amazonsqs.yml
53 lines (48 loc) · 1.67 KB
/
docker-compose.amazonsqs.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
# docker-compose -f docker-compose.amazonsqs.yml up --build -d
# https://hub.docker.com/r/softwaremill/elasticmq
# docker run -p 9324:9324 softwaremill/elasticmq
version: "3.4"
networks:
app-tier:
driver: bridge
services:
amazonsqs: #http://amazonsqs:9324
image: softwaremill/elasticmq
container_name: amazonsqs
hostname: amazonsqs
ports:
- "9324:9324"
networks:
- app-tier
sample-amazonsqs-producer:
build:
context: .
dockerfile: ./src/Samples/Sample.AmazonSQS.Producer/Dockerfile
container_name: "Sample.AmazonSQS.Producer"
volumes:
- ./.docker/amazonsqs/Sample.AmazonSQS.Producer/Logs/:/app/Logs/
environment:
AMAZON_SQS_ENDPOINT: "http://amazonsqs:9324"
AMAZON_SQS_REGION: REGION
AMAZON_SQS_ACCESSKEYID: na
AMAZON_SQS_SECRET_ACCESSKEY: na
AMAZON_SQS_QUEUENAME: test-queue
AMAZON_SQS_LONG_POLL_TIME_SEC: "15"
networks:
- app-tier
sample-amazonsqs-consumer:
build:
context: .
dockerfile: ./src/Samples/Sample.AmazonSQS.Consumer/Dockerfile
container_name: "Sample.AmazonSQS.Consumer"
volumes:
- ./.docker/amazonsqs/Sample.AmazonSQS.Consumer/Logs/:/app/Logs/
environment:
AMAZON_SQS_ENDPOINT: "http://amazonsqs:9324"
AMAZON_SQS_REGION: REGION
AMAZON_SQS_ACCESSKEYID: na
AMAZON_SQS_SECRET_ACCESSKEY: na
AMAZON_SQS_QUEUENAME: test-queue
AMAZON_SQS_LONG_POLL_TIME_SEC: "15"
networks:
- app-tier