-
-
Notifications
You must be signed in to change notification settings - Fork 78
/
docker-compose.yml
66 lines (64 loc) · 1.54 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
version: '3.7'
services:
jasmin_web:
image: tarekaec/jasmin_web_panel:1.2
ports:
- "8000:8000"
deploy:
replicas: 1
update_config:
order: start-first
# entrypoint: bash ./docker-entrypoint.sh
env_file:
- .env
environment:
DEBUG: '1'
DJANGO_SETTINGS_MODULE: config.settings.pro
ALLOWED_HOSTS: '127.0.0.1,127.0.0.11'
PRODB_URL: postgres://jasmin:[email protected]:5432/jasmin
REDIS_URI: redis://jasmin_redis:6379/1
TELNET_HOST: jasmin
SUBMIT_LOG: 1
volumes:
- web_public:/app/public
- web_logs:/app/logs
depends_on:
- jasmin_redis
jasmin_celery:
image: tarekaec/jasmin_web_panel:1.2
entrypoint: bash ./docker-entrypoint-celery.sh
deploy:
replicas: 1
env_file:
- .env
environment:
DEBUG: 0
PRODB_URL: postgres://jasmin:[email protected]:5432/jasmin
DJANGO_SETTINGS_MODULE: config.settings.pro
CELERY_BROKER_URL: redis://jasmin_redis:6379/0
CELERY_RESULT_BACKEND: redis://jasmin_redis:6379/0
CELERY_LOG_LEVEL: info
healthcheck:
disable: true
depends_on:
- jasmin_redis
jasmin_redis:
image: redis:alpine
tty: true
volumes:
- redis_data:/data
command:
- 'redis-server'
- '--appendonly yes'
- '--save 60 1'
# restart: unless-stopped
environment:
REDIS_REPLICATION_MODE: master
ALLOW_EMPTY_PASSWORD: "yes"
volumes:
redis_data:
driver: local
web_public:
driver: local
web_logs:
driver: local