-
-
Notifications
You must be signed in to change notification settings - Fork 18
/
docker-compose.yml
47 lines (44 loc) · 876 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
47
version: '3.8'
services:
web:
build:
context: .
dockerfile: Dockerfile
ports:
- "127.0.0.1:6001:5000"
links:
- mymongo
restart: unless-stopped
hostname: pydigger-web
volumes:
- logs:/logs
cron:
build:
context: .
dockerfile: Dockerfile
links:
- mymongo
restart: unless-stopped
entrypoint: cron -f -L3
hostname: pydigger-cron
volumes:
- logs:/logs
mymongo:
build:
context: mongodb
dockerfile: Dockerfile
mem_limit: 2048m
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: Secret
volumes:
- mongo-data:/data/db
- mongo-configdb:/data/configdb
- ./backup:/backup
- ./tools:/tools
restart: unless-stopped
hostname: pydigger-mongodb
volumes:
mongo-data:
mongo-configdb:
logs: