-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-dev.yml
More file actions
52 lines (48 loc) · 930 Bytes
/
docker-compose-dev.yml
File metadata and controls
52 lines (48 loc) · 930 Bytes
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
version: "3"
services:
auth:
image: auth
build: ./auth
command: apistar run --port 80 --host 0.0.0.0
ports:
- 80
environment:
VIRTUAL_HOST: "*/auth/*"
VIRTUAL_HOST_WEIGHT: 10
volumes:
- ./auth:/code
service:
image: service
build: ./service
command: apistar run --port 80 --host 0.0.0.0
ports:
- 80
environment:
VIRTUAL_HOST: "*/service/*"
VIRTUAL_HOST_WEIGHT: 10
volumes:
- ./service:/code
ui:
image: ui
build:
context: ./ui
dockerfile: Dockerfile.dev
ports:
- 3000
environment:
VIRTUAL_HOST: "*/*"
SERVICE_PORTS: 3000
VIRTUAL_HOST_WEIGHT: 0
volumes:
- ./ui:/app
lb:
image: dockercloud/haproxy
volumes:
- /var/run/docker.sock:/var/run/docker.sock
ports:
- '80:80'
- '1936:1936'
links:
- auth
- service
- ui