-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
45 lines (43 loc) · 959 Bytes
/
docker-compose.yaml
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
version: "3"
services:
backend:
image: backend
build:
context: backend
dockerfile: Dockerfile
environment:
- VIRTUAL_HOST=event-manager.localhost/api,event-manager.localhost/api/*
- VIRTUAL_HOST_WEIGHT=1
expose:
- 3000
volumes:
- ./backend/src:/app/src
- ./backend/events.json:/app/events.json
frontend:
build:
context: frontend
dockerfile: Dockerfile
environment:
- HOST=0.0.0.0
- VIRTUAL_HOST=event-manager.localhost
- VIRTUAL_HOST_WEIGHT=0
volumes:
- ./frontend/src:/app/src
- ./frontend/public:/app/public
expose:
- 8080
load-balancer:
image: dockercloud/haproxy
links:
- backend
- frontend
networks:
default:
aliases:
- event-manager.localhost
volumes:
- /var/run/docker.sock:/var/run/docker.sock
ports:
- 80:80
- 443:443
restart: on-failure