-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
74 lines (68 loc) · 1.58 KB
/
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
services:
backend:
build:
context: ./
dockerfile: ./backend/Dockerfile.${NODE_ENV}
restart: always
depends_on:
- db
volumes:
- ./backend:/app
- ./common:/common
ports:
- ${BACKEND_PORT}:${BACKEND_PORT}
- ${BACKEND_DEBUG_PORT}:${BACKEND_DEBUG_PORT}
env_file:
- .env
db:
image: mongo
command: --quiet --logpath /dev/null
restart: always
volumes:
- db_data:/data/db
# Uses ningx in production mode see /frontend/Dockerfile.production
frontend:
build:
context: ./
dockerfile: ./frontend/Dockerfile.${NODE_ENV}
volumes:
- ./frontend:/app
- ./common:/common:ro
restart: always
depends_on:
- backend
ports:
- ${FRONTEND_PORT}:80
env_file:
- .env
# Test LDAP only in development mode
ldap:
build:
context: ./dev-tools/ldap
dockerfile: Dockerfile.${NODE_ENV}
environment:
- DEBUG=false
# Test SMTP + mail client only in development mode
inbucket:
build:
context: ./dev-tools/inbucket
dockerfile: Dockerfile.${NODE_ENV}
ports:
- ${INBUCKET_UI_PORT}:9000
environment:
- INBUCKET_LOGLEVEL=error
# Test SMTP + mail client only in development mode
mongo-express:
build:
context: ./dev-tools/mongo-express
dockerfile: Dockerfile.${NODE_ENV}
depends_on:
- db
ports:
- ${MONGO_EXPRESS_PORT}:8081
environment:
- ME_CONFIG_MONGODB_URL=${MONGO_URL}
- ME_CONFIG_BASICAUTH=false
- ME_CONFIG_MONGODB_ENABLE_ADMIN=true
volumes:
db_data: