forked from soketi/soketi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
70 lines (68 loc) · 1.62 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
65
66
67
68
69
70
version: "3"
networks:
soketi:
driver: bridge
services:
localstack:
container_name: localstack
image: localstack/localstack
ports:
- "4510-4530:4510-4530"
- "4566:4566"
- "4571:4571"
environment:
- SERVICES=sqs,s3
- DEBUG=1
- HOST_TMP_FOLDER=/tmp/localstack
- DOCKER_HOST=unix:///var/run/docker.sock
volumes:
- "${TMPDIR:-/tmp}/localstack:/tmp/localstack"
- "/var/run/docker.sock:/var/run/docker.sock"
networks:
- soketi
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:4566/health"]
retries: 3
timeout: 5s
initialize_sqs:
container_name: initialize_sqs
build:
context: .
dockerfile: Dockerfile.awslocal
volumes:
- ./tests/fixtures/sqs.json:/tmp/sqs.json
networks:
- soketi
command:
- sqs
- create-queue
- --endpoint-url=http://localstack:4566
- --queue-name=test.fifo
- --region=us-east-1
- --attributes=file:///tmp/sqs.json
depends_on:
localstack:
condition: service_healthy
dynamodb:
container_name: dynamodb
image: amazon/dynamodb-local:1.22.0
ports:
- "8000:8000"
command: "-jar DynamoDBLocal.jar -sharedDb"
networks:
- soketi
environment:
AWS_ACCESS_KEY_ID: fake-id
AWS_SECRET_ACCESS_KEY: fake-secret
initialize_dynamodb:
container_name: initialize_dynamodb
image: node:18-alpine
volumes:
- .:/app/
networks:
- soketi
environment:
- DYNAMODB_URL="dynamodb:8000"
entrypoint:
- node
- /app/tests/fixtures/dynamodb_schema.js