-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
43 lines (38 loc) · 1.13 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
version: "3.9"
services:
mongodb:
image: mongo:4.4.5
volumes:
- ./data/db:/data/db
environment:
MONGO_INITDB_ROOT_USERNAME: ${MONGO_USER:-root}
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_PASS:-pass}
ports:
- "0.0.0.0:${MONGO_PORT:-27017}:27017"
restart: always
mongo-express:
image: mongo-express:0.54.0
restart: always
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: ${MONGO_USER:-root}
ME_CONFIG_MONGODB_ADMINPASSWORD: ${MONGO_PASS:-pass}
ME_CONFIG_MONGODB_AUTH_DATABASE: ${MONGO_DB:-threatmapper}
ME_CONFIG_MONGODB_SERVER: ${MONGO_HOST:-mongodb}
ME_CONFIG_MONGODB_PORT: ${MONGO_PORT:-27017}
ports:
- "0.0.0.0:${MONGO_EXPRESS_PORT:-8081}:8081"
depends_on:
- mongodb
scanner:
build: ./src/scanner
command: poetry run python ./main.py
environment:
MONGO_USER: ${MONGO_USER:-root}
MONGO_PASS: ${MONGO_PASS:-pass}
MONGO_HOST: ${MONGO_HOST:-mongodb}
MONGO_PORT: ${MONGO_PORT:-27017}
MONGO_DB: ${MONGO_DB:-threatmapper}
MONGO_COLL: ${MONGO_COLL:-attacks}
depends_on:
- mongodb
restart: always