-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
56 lines (51 loc) · 1.16 KB
/
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
46
47
48
49
50
51
52
53
54
55
56
version: '3.1'
volumes:
uploads: {}
db: {}
src: {}
sessions: {}
services:
mongo:
image: mongo
expose:
- "27017"
restart: unless-stopped
volumes:
- db:/data/db
mongo-express:
image: mongo-express
restart: unless-stopped
depends_on:
- mongo
ports:
- "8081:8081"
# Hack for Windows not triggering inotify
sync:
build: src/docker/sync
restart: unless-stopped
volumes:
- ./src:/dev/src/:consistent
- src:/app/src
server:
build:
context: .
dockerfile: src/docker/dev/Dockerfile
restart: unless-stopped
environment:
- BASEPATH
- NODE_ENV
- SMTP_host
- SMTP_port
- SMTP_user
- SMTP_pass
- SMTP_email
depends_on:
- 'mongo'
ports:
- "3000:3000"
- "24678:24678"
volumes:
- uploads:/app/uploads
- src:/app/src
- sessions:/app/sessions
- ./static:/app/static/:ro