-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
40 lines (40 loc) · 1003 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
version: '3.0'
services:
proxy:
image: traefik
container_name: baromatic-proxy
ports:
- "80:80"
- "8082:8082"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./traefik.toml:/etc/traefik/traefik.toml
backend:
image: gaetancollaud/bar-o-matic-backend
container_name: baromatic-backend
build: ./backend
#links:
# - mongodb:mongodb
#TODO add devices
labels:
- "traefik.frontend.rule=PathPrefix:/api"
- "traefik.enable=true"
- "traefik.port=8080"
- "traefik.frontend.priority=10"
frontend:
image: gaetancollaud/bar-o-matic-frontend
container_name: baromatic-frontend
build: ./frontend
labels:
- "traefik.frontend.rule=PathPrefix:/"
- "traefik.enable=true"
- "traefik.port=80"
- "traefik.frontend.priority=5"
mongodb:
image: mongo
container_name: cocktail-mongo
user: root
ports:
- 27017:27017
volumes:
- "./data/mongo:/data/db"