-
Notifications
You must be signed in to change notification settings - Fork 13
/
docker-compose.yml
49 lines (47 loc) · 1.01 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
44
45
46
47
48
49
version: "3.5"
services:
mongodb:
image: mongo:latest
container_name: mongodb
restart: unless-stopped
environment:
MONGO_INITDB_ROOT_USERNAME: admin
MONGO_INITDB_ROOT_PASSWORD: admin
ports:
- "27017:27017"
networks:
- app-network
volumes:
- type: volume
source: MONGO_DATA
target: /data/db
- type: volume
source: MONGO_CONFIG
target: /data/configdb
flask:
image: in0ri/defaced:latest
container_name: flask_app
restart: unless-stopped
environment:
MONGODB_USERNAME: admin
MONGODB_PASSWORD: admin
MONGODB_HOSTNAME: mongodb
ports:
- "8080:8080"
- "8088:8088"
depends_on:
- mongodb
networks:
- app-network
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
- ./Alert:/opt/In0ri/Alert
networks:
app-network:
driver: bridge
volumes:
MONGO_DATA:
name: MONGO_DATA
MONGO_CONFIG:
name: MONGO_CONFIG