-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
52 lines (50 loc) · 1007 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
48
49
50
51
52
version: '3.0'
services:
backend:
restart: always
build:
context: .
dockerfile: ./Dockerfile-backend
command: nodemon -L server.js
volumes:
- ./:/app
environment:
- MONGODB_URI=mongodb://database:27017/calendar
- ENV=STAGING
ports:
- "8080:8080"
links:
- database
database:
container_name: mongodb
image: mongo
volumes:
- mongodata:/data/db
ports:
- "27017:27017"
frontend:
restart: always
build:
context: .
dockerfile: ./Dockerfile-frontend
command: ng serve --poll 1000 --host 0.0.0.0 --disable-host-check
volumes:
- ./:/app
restart: always
ports:
- "4200:4200"
links:
- database
# bot:
# build:
# context: ../team-calendar-bot
# restart: always
# volumes:
# - ../team-calendar-bot/:/app
# command: python ./mattermost.py
# ports:
# - "5000:5000"
# links:
# - backend
volumes:
mongodata: