-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
65 lines (63 loc) · 1.43 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
version: '3.7'
services:
web:
image: tarekaec/django_aio:1.0
ports:
- "8000:8000"
deploy:
replicas: 1
update_config:
order: start-first
# entrypoint: bash ./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://redis:6379/1
TELNET_HOST: jasmin
SUBMIT_LOG: 1
volumes:
- web_public:/app/public
- web_logs:/app/logs
depends_on:
- redis
celery:
image: tarekaec/django_aio:1.0
entrypoint: bash ./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://redis:6379/0
CELERY_RESULT_BACKEND: redis://redis:6379/0
CELERY_LOG_LEVEL: info
healthcheck:
disable: true
depends_on:
- redis
redis:
image: redis:alpine
tty: true
volumes:
- redis_data:/data
command:
- 'redis-server'
- '--appendonly yes'
- '--save 60 1'
environment:
REDIS_REPLICATION_MODE: master
ALLOW_EMPTY_PASSWORD: "yes"
volumes:
redis_data:
driver: local
web_public:
driver: local
web_logs:
driver: local