-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·77 lines (58 loc) · 2.28 KB
/
docker-compose.yml
File metadata and controls
executable file
·77 lines (58 loc) · 2.28 KB
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
version: '3.3'
services:
web:
restart: always
build: .
volumes:
- ./codes:/home/web/codes
# - /opt/pysfapp/media:/home/web/codes/media
ports:
- 8041:8000
# command: bash -c "python3 manage.py runserver 0.0.0.0:8000"
command: /usr/local/bin/gunicorn --env DJANGO_SETTINGS_MODULE=web.settings web.wsgi --workers 8 --timeout 999 --bind=0.0.0.0:8000 --access-logfile /var/log/gunicorn.access.log --error-logfile /var/log/gunicorn.error.log
environment:
- db
- db_password
- db_user
- db_host
web_websocket:
restart: always
build: .
volumes:
- ./codes:/home/web/codes
# - /opt/pysfapp/media:/home/web/codes/media
ports:
- 8040:8010
command: /usr/local/bin/gunicorn --env DJANGO_SETTINGS_MODULE=web.settings --bind 0.0.0.0:8010 web.routing:application -w 8 -k uvicorn.workers.UvicornWorker --timeout 999 --access-logfile /var/log/gunicorn.access2.log --error-logfile /var/log/gunicorn.error2.log
# command: /usr/local/bin/gunicorn --bind 0.0.0.0:8010 web.routing:application -w 8 -k uvicorn.workers.UvicornWorker --timeout 999 --access-logfile /var/log/gunicorn.access2.log --error-logfile /var/log/gunicorn.error2.log
# command: /usr/local/bin/gunicorn --bind 0.0.0.0:8010 web.asgi -w 8 --timeout 999 --access-logfile /var/log/gunicorn.access2.log --error-logfile /var/log/gunicorn.error2.log
# command: /usr/local/bin/uvicorn web.routing:application --host 0.0.0.0 --port 8010 --access-logfile /var/log/gunicorn.access2.log --error-logfile /var/log/gunicorn.error2.log
environment:
- db
- db_password
- db_user
- db_host
redis:
image: redis:alpine
celery:
restart: always
build: .
command: celery -A web worker -l info
volumes:
- ./codes:/home/web/codes
depends_on:
- redis
- web
celery-beat:
restart: always
build: .
command: celery -A web beat -l info
volumes:
- ./codes:/home/web/codes
depends_on:
- redis
- web
networks:
backend:
external:
name: api_network