blob: 7141c6c0c38b0741df7d077afdc4e64fe06f7a73 (
plain) (
blame)
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
|
version: '2.1'
services:
stldoctor-checker:
build: .
# The checker runs a HTTP interfaces, so we need to map port 3031 to the outside (port 8000).
ports:
- 9091:3031
environment:
- MONGO_ENABLED=1
- MONGO_HOST=stldoctor-mongo
- MONGO_PORT=27017
- MONGO_USER=stldoctor_checker
- MONGO_PASSWORD=stldoctor_checker
mem_limit: 1G
memswap_limit: 2G
ulimits:
core:
soft: 0
hard: 0
nproc:
soft: 4000
hard: 4000
# The python checkerlib requires a mongo db!
stldoctor-mongo:
image: mongo
volumes:
- ./data:/data/db
environment:
MONGO_INITDB_ROOT_USERNAME: stldoctor_checker
MONGO_INITDB_ROOT_PASSWORD: stldoctor_checker
mem_limit: 1G
memswap_limit: 2G
ulimits:
core:
soft: 0
hard: 0
nproc:
soft: 4000
hard: 4000
|