-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
58 lines (53 loc) · 1.34 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
version: '3'
services:
localstack:
container_name: "${LOCALSTACK_DOCKER_NAME-localstack_main}"
image: localstack/localstack-pro:latest
ports:
- "127.0.0.1:4566:4566" # LocalStack Gateway
- "127.0.0.1:4510-4559:4510-4559" # external services port range
- "127.0.0.1:443:443"
environment:
- LOCALSTACK_AUTH_TOKEN=${LOCALSTACK_AUTH_TOKEN:?}
- DEBUG=1
- DOCKER_HOST=unix:///var/run/docker.sock
- EXTRA_CORS_ALLOWED_ORIGINS='*'
volumes:
- "./init-aws.sh:/etc/localstack/init/ready.d/init-aws.sh"
- "localstack:/var/lib/localstack"
- "/var/run/docker.sock:/var/run/docker.sock"
networks:
ls:
ipv4_address: 10.0.2.20
frontend:
container_name: react
labels:
shipyard.route: '/'
shipyard.primary-route: 'true'
build: 'frontend'
volumes:
- './frontend/src:/app/src'
- './frontend/public:/app/public'
ports:
- '3000:3000'
backend:
container_name: flask
labels:
shipyard.route: '/api'
build: 'backend'
environment:
SHIPYARD_DOMAIN_FRONTEND: ${SHIPYARD_DOMAIN_FRONTEND-}
SHIPYARD_DOMAIN: ${SHIPYARD_DOMAIN}
ports:
- '8080:8080'
dns:
- 10.0.2.20
networks:
- ls
networks:
ls:
ipam:
config:
- subnet: 10.0.2.0/24
volumes:
localstack: