-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
62 lines (57 loc) · 1.37 KB
/
docker-compose.yml
File metadata and controls
62 lines (57 loc) · 1.37 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
version: "3.8"
services:
localstack:
container_name: "localstack"
image: localstack/localstack:3.0
ports:
- "4566:4566" # LocalStack Gateway
- "4510-4559:4510-4559" # external services port range
environment:
- EXTRA_CORS_ALLOWED_ORIGINS=http://localhost
- DEBUG=${DEBUG-}
- DOCKER_HOST=unix:///var/run/docker.sock
volumes:
- "${LOCALSTACK_VOLUME_DIR:-./volume}:/var/lib/localstack"
- "/var/run/docker.sock:/var/run/docker.sock"
networks:
- windtracker
web-app:
container_name: "web-app"
build:
context: /web-app
dockerfile: Dockerfile
image: web-app
ports:
- 80:3000
networks:
- windtracker
volumes:
- web-app:/home/web-app
terraform-local:
container_name: "terraform-local"
build:
context: /
dockerfile: Dockerfile
image: terraform-local
tty: true
stdin_open: true
depends_on:
localstack:
condition: service_started
environment:
- AWS_ACCESS_KEY_ID=key
- AWS_SECRET_ACCESS_KEY=secret_key
- AWS_DEFAULT_REGION=us-east-2
- AWS_ENDPOINT_URL=localstack:4566
- LOCALSTACK_HOSTNAME=localstack
- EDGE_PORT=4566
networks:
- windtracker
volumes:
- web-app:/home/web-app
networks:
windtracker:
name: windtracker
driver: bridge
volumes:
web-app: