-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·93 lines (88 loc) · 3.23 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
mongo:
image: mongo:latest
volumes:
- /home/dkr/data/db:/data/db
redis:
image: redis:3.0.5
ports:
- "0.0.0.0:6379:6379"
python_whats:
restart: always
image: python_fc
links:
- redis
- mongo
volumes:
- /home/dkr/porwhats/logs:/logs
- /home/dkr/porwhats/python_whats/requirements.txt:/app/python_whats/requirements.txt
- /home/dkr/porwhats/python_whats/:/app/python_whats
- /home/dkr/porwhats/python_whats/_yowsup:/root/.yowsup
- /home/dkr/porwhats/python_whats/docker-entrypoint.sh:/app/python_whats/docker-entrypoint.sh
#- /home/dkr/porwhats/configurations/app/app.ini:/etc/supervisor/app.ini
#- /home/dkr/porwhats/configurations/app/downloader.ini:/etc/supervisor/downloader.ini
- /home/dkr/porwhats/configurations/app/downloader.ini:/etc/supervisor/whatsapp.ini
- /home/dkr/porwhats/configurations/supervisor/supervisord.conf:/etc/supervisord.conf
#env_file: .env
working_dir: /app/python_whats
entrypoint: /app/python_whats/docker-entrypoint.sh
python_downloader:
restart: always
image: python_fc
links:
- redis
- mongo
volumes:
- /home/dkr/porwhats/web:/app/
- /home/dkr/porwhats/logs:/logs
- /home/dkr/porwhats/web/static/:/app/static
- /home/dkr/porwhats/uploads/:/app/static/uploads
- /home/dkr/porwhats/python_downloader:/app/python_downloader
- /home/dkr/porwhats/python_downloader/requirements.txt:/app/python_downloader/requirements.txt
- /home/dkr/porwhats/python_downloader/docker-entrypoint.sh:/app/python_downloader/docker-entrypoint.sh
#- /home/dkr/porwhats/configurations/app/app.ini:/etc/supervisor/app.ini
- /home/dkr/porwhats/configurations/app/downloader.ini:/etc/supervisor/downloader.ini
#- /home/dkr/porwhats/configurations/app/downloader.ini:/etc/supervisor/whatsapp.ini
- /home/dkr/porwhats/configurations/supervisor/supervisord.conf:/etc/supervisord.conf
#env_file: .env
working_dir: /app/python_downloader
entrypoint: /app/docker-entrypoint.sh
web:
restart: always
build: ./web
expose:
- "5000"
ports:
- "5000:5000"
links:
- redis
- mongo
volumes:
- /home/dkr/porwhats/web:/app/
- /home/dkr/porwhats/logs:/logs
- /home/dkr/porwhats/web/static/:/app/static
- /home/dkr/porwhats/uploads/:/app/static/uploads
- /home/dkr/porwhats/web/requirements.txt:/app/web/requirements.txt
- /home/dkr/porwhats/web/docker-entrypoint.sh:/app/web/docker-entrypoint.sh
- /home/dkr/porwhats/configurations/app/app.ini:/etc/supervisor/app.ini
#- /home/dkr/porwhats/configurations/app/downloader.ini:/etc/supervisor/downloader.ini
#- /home/dkr/porwhats/configurations/app/downloader.ini:/etc/supervisor/whatsapp.ini
- /home/dkr/porwhats/configurations/supervisor/supervisord.conf:/etc/supervisord.conf
#env_file: .env
working_dir: /app
entrypoint: ./docker-entrypoint.sh
nginx:
restart: always
build: ./nginx/
ports:
- "80:80"
- "443:443"
volumes:
- /home/dkr/porwhats/web/static/:/www/static
- /home/dkr/uploads/:/app/static/uploads
- /home/dkr/porwhats/logs:/logs
- /etc/letsencrypt/live/porwhats.com/fullchain.pem:/fullchain.pem
- /etc/letsencrypt/live/porwhats.com/privkey.pem:/privkey.pem
volumes_from:
- web
links:
- web:web