-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
68 lines (65 loc) · 1.65 KB
/
docker-compose.yml
File metadata and controls
68 lines (65 loc) · 1.65 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
56
57
58
59
60
61
62
63
64
65
66
67
68
services:
web-frontend:
build:
context: . # repo root
dockerfile: frontend/apps/web/Dockerfile
ports:
- "80:80"
depends_on:
- backend
networks:
- app-network
container_name: web-frontend
labels:
- "description=Frontend available at http://localhost"
backend:
build:
context: ./backend
dockerfile: Dockerfile.dev
ports:
- "8080:8080"
- "10000:10000"
env_file:
- .env
- ./backend/.env
command: go run main.go
develop:
watch:
- action: sync+restart
path: ./backend
target: /app
networks:
- app-network
container_name: backend
labels:
- "description=Backend available at http://localhost:8080"
extra_hosts:
- "host.docker.internal:host-gateway"
localstack:
image: localstack/localstack:latest
ports:
- "4566:4566"
environment:
- SERVICES=s3,sqs,lambda,iam,logs
- DEFAULT_REGION=us-east-1
- DOCKER_HOST=unix:///var/run/docker.sock
- RESEND_API_KEY=${RESEND_API_KEY:-}
- RESEND_FROM_EMAIL=${RESEND_FROM_EMAIL:-}
- EXPO_ACCESS_TOKEN=${EXPO_ACCESS_TOKEN:-}
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./scripts/localstack-init.sh:/etc/localstack/init/ready.d/init.sh
- ./infra/modules/main/lambda_function.zip:/tmp/lambda-zip/lambda_function.zip:ro
networks:
- app-network
container_name: localstack
profiles:
- localstack
healthcheck:
test: ["CMD", "awslocal", "sqs", "list-queues"]
interval: 5s
timeout: 5s
retries: 10
networks:
app-network:
driver: bridge