-
Notifications
You must be signed in to change notification settings - Fork 42
/
docker-compose.yml
62 lines (58 loc) · 1.8 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
50
51
52
53
54
55
56
57
58
59
60
61
62
services:
mftp:
build:
context: ./mftp
dockerfile: Dockerfile
image: metakgporg/mftp
container_name: mftp
command: $MFTP_MODE
volumes:
- $MFTP_CONFIG/env.py:/app/env.py
- $MFTP_CONFIG/token.json:/app/token.json
- $MFTP_CONFIG/credentials.json:/app/credentials.json
- $MFTP_CONFIG/mail_send_token.json:/app/mail_send_token.json
- $MFTP_CONFIG/mail_send_creds.json:/app/mail_send_creds.json
- $MFTP_CONFIG/.session:/app/.session
depends_on:
- db
networks:
- mftp_network
db:
image: mongo:latest
container_name: mftp-db
environment:
- MONGO_INITDB_ROOT_USERNAME=${MONGO_ROOT_USERNAME}
- MONGO_INITDB_ROOT_PASSWORD=${MONGO_ROOT_PASSWORD}
- MONGO_INITDB_DATABASE=${MONGO_DATABASE}
ports:
- ${MONGO_PORT}:27017
volumes:
- mongodb_data:/data/db
- mongodb_config:/data/configdb
networks:
- mftp_network
command: ["--auth", "--bind_ip_all"]
healthcheck:
test: echo 'db.runCommand("ping").ok' | mongosh localhost:27017/test --quiet
interval: 10s
timeout: 10s
retries: 5
start_period: 40s
mftp-doctor:
build:
context: ./mftp-doctor
dockerfile: Dockerfile
image: metakgporg/mftp-doctor
container_name: mftp-doctor
command: ${DOCTOR_MODE:-}
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- $DOCTOR_CONFIG/env.py:/app/env.py
volumes:
mongodb_data:
driver: local
mongodb_config:
driver: local
networks:
mftp_network:
driver: bridge