-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
42 lines (41 loc) · 847 Bytes
/
docker-compose.yaml
File metadata and controls
42 lines (41 loc) · 847 Bytes
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:
portal:
container_name: portal
restart: always
image: keybraker/portal:latest
environment:
NODE_ENV: production
build:
context: .
dockerfile: ./docker/Dockerfile
depends_on:
- mongo
volumes:
- type: bind
source: ../logs
target: /logs
deploy:
resources:
limits:
memory: 768M
mongo:
container_name: mongo
restart: always
image: mongo:5.0
logging:
driver: "none"
ports:
- "27017:27017"
volumes:
- type: bind
source: ../mongo/data/db
target: /data/db
deploy:
resources:
limits:
memory: 256M
healthcheck:
test: "echo 'db.runCommand(\"ping\").ok' | mongo localhost:27017/test --quiet"
interval: 10s
timeout: 5s
retries: 5