-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (38 loc) · 1.08 KB
/
docker-compose.yml
File metadata and controls
47 lines (38 loc) · 1.08 KB
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
version: '3.6'
services:
sealog-server:
build:
context: .
dockerfile: Dockerfile
image: whoi/ndsf-sealog-server
restart: unless-stopped
depends_on:
mongo:
condition: service_healthy
environment:
# Change this value to something random
- SEALOG_SECRET=VDESWM31EC+YQ5bLtrIHxl9dnHH67oGx7aMgm27ALjI=
# To use the debugger, uncomment the following and the port below and visit
# chrome://inspect in the Chrome browser
#command: node --inspect-brk=0.0.0.0:9229 server.js
ports:
- "8000:8000" # API
# - "9229:9229" # Node debugger
volumes:
- sealog-files:/home/sealog/sealog-files
# To use custom configuration files in ./config, uncomment the following:
# - ./config:/usr/src/app/config
mongo:
image: mongo:4
restart: unless-stopped
healthcheck:
test: ["CMD", "mongo", "--quiet", "--eval", "db.adminCommand('ping').ok"]
interval: 2s
timeout: 5s
retries: 30
start_period: 5s
volumes:
- database:/data/db
volumes:
database:
sealog-files: