-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml.dist
42 lines (38 loc) · 1.34 KB
/
docker-compose.yml.dist
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
services:
sealog-server:
build:
context: .
dockerfile: Dockerfile
depends_on:
- mongo
environment:
#- SEALOG_SERVER_PORT=8000
#- SEALOG_SERVER_FILEPATH_ROOT=/data/sealog-files
#- SEALOG_SERVER_TLS_PRIVKEY=<privkey.pem>
#- SEALOG_SERVER_TLS_FULLCHAIN=<fulchain.pem>
# Create SEALOG_SERVER_SECRET with:
# node -e "console.log(require('crypto').randomBytes(256).toString('base64'));"
- SEALOG_SERVER_SECRET='<SECRET_TOKEN>'
# NODE_ENV Options are:
# - production: what to use for realz
# - development: preloads some events, event templates cruises and lowerings
# - demo-vessel: preloads some event templates, cruises, and events... good for evaluating Sealog for vessels
# - demo-vehicle: preloads some event templates, cruises, lowerings and events... good for evaluating Sealog for vehicles
- NODE_ENV=production
- MONGO_URL=mongodb://mongo:27017/sealogDB
image: sealog-server
ports:
- "8000:8000"
restart: unless-stopped
volumes:
# Make sure this directory exists
- /opt/sealog-server/sealog-files:/data/sealog-files
mongo:
image: mongo
# Uncomment these lines if you need direct access to the database
# ports:
# - "27017:27017"
volumes:
- db_data:/data/db
volumes:
db_data: