-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
55 lines (51 loc) · 1.38 KB
/
docker-compose.yml
File metadata and controls
55 lines (51 loc) · 1.38 KB
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
services:
localstack:
image: localstack/localstack
platform: linux/amd64
container_name: localstack
ports:
- "4566:4566"
- "4571:4571"
environment:
- SERVICES=dynamodb
- EDGE_PORT=4566
- AWS_DEFAULT_REGION=us-east-1
volumes:
- ./localstack:/var/lib/localstack
healthcheck:
test: ["CMD-SHELL", "curl -s -o /dev/null -w \"%{http_code}\" http://localhost:4566/_localstack/health | grep '200' || exit 1"]
interval: 1s
retries: 20
start_period: 1s
timeout: 5s
networks:
- localstack-network
usersgrpc:
build:
context: ./
dockerfile: ./Dockerfile
platform: linux/amd64
container_name: usersgrpc
depends_on:
localstack:
condition: service_healthy
environment:
- AWS_ACCESS_KEY_ID=test
- AWS_SECRET_ACCESS_KEY=test
volumes:
- ./go.mod:/app/go.mod
- ./go.sum:/app/go.sum
- ./server:/app/server/
- ./users:/app/users/
- ./cmd:/app/cmd/
- ./seed_db_with_test_data.sh:/usr/local/bin/seed_db_with_test_data.sh
entrypoint: ["/bin/sh", "-c", "chmod +x /usr/local/bin/seed_db_with_test_data.sh && /usr/local/bin/seed_db_with_test_data.sh && /app/serverexecutable"]
ports:
- "50051:50051"
networks:
- localstack-network
volumes:
localstack:
networks:
localstack-network:
driver: bridge