-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (40 loc) · 862 Bytes
/
docker-compose.yml
File metadata and controls
44 lines (40 loc) · 862 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
version: "3"
services:
api:
image: my-backend
build: ./api
command: apistar run --port 80 --host 0.0.0.0
ports:
- 80
networks:
- backend
environment:
VIRTUAL_HOST: api.app.dev
web:
image: my-frontend
build: ./frontend
networks:
- frontend
environment:
VIRTUAL_HOST: app.app.dev
lb:
image: dockercloud/haproxy
ports:
- '80:80'
- '1936:1936'
depends_on:
- api
- web
networks:
- backend
- frontend
volumes:
- /var/run/docker.sock:/var/run/docker.sock
links:
- api
- web
networks:
backend:
driver: bridge
frontend:
driver: bridge