-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
46 lines (45 loc) · 1020 Bytes
/
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
version: "3.1"
services:
kniot-scrapper:
build:
context: .
target: prod
environment:
- XML_STORE_PATH=dumps/
- MONGO_URL=localhost
- MONGO_PORT=27017
- SE_MODE=False
container_name: kniot-scrapper
network_mode: "host"
hostname: kniot-scrapper
restart: unless-stopped
volumes:
- ./dumps:/usr/src/app/dumps
- "/etc/timezone:/etc/timezone:ro"
- "/etc/localtime:/etc/localtime:ro"
mongodb-scrapper:
image : mongo
container_name: mongodb-scrapper
environment:
- PUID=1000
- PGID=1000
volumes:
- ./database:/data/db
- "/etc/timezone:/etc/timezone:ro"
- "/etc/localtime:/etc/localtime:ro"
ports:
- 27017:27017
restart: unless-stopped
# volumes:
# dumps:
# driver: local
# driver_opts:
# o: bind
# type: none
# device: ./dumps
# database:
# driver: local
# driver_opts:
# o: bind
# type: none
# device: ./database