-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdocker-compose.yml
47 lines (43 loc) · 944 Bytes
/
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
version: '3'
services:
api:
build:
context: api
dockerfile: development.Dockerfile
environment:
- VIRTUAL_HOST=app-local.arm.ag/api,app-local.arm.ag/api/*
- VIRTUAL_HOST_WEIGHT=1
- DB_URL=mongodb://mongodb/wtm
ports:
- 3000:3000
volumes:
- ./api/src:/app/src
depends_on:
- mongodb
frontend:
build:
context: frontend
dockerfile: development.Dockerfile
environment:
- HOST=0.0.0.0
- VIRTUAL_HOST=app-local.arm.ag
- APP_ENV=development
volumes:
- ./frontend/config:/app/config
- ./frontend/src:/app/src
- ./frontend/static:/app/static
expose:
- 8080
mongodb:
image: mongo:latest
load-balancer:
image: dockercloud/haproxy
links:
- api
- frontend
volumes:
- /var/run/docker.sock:/var/run/docker.sock
ports:
- 80:80
- 443:443
restart: on-failure