-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
44 lines (39 loc) · 996 Bytes
/
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
version: '3'
services:
redis:
image: "redis:alpine"
web:
build: .
command: python ./manage.py runserver 0.0.0.0:8080
# command: /code/run_server_and_ngrok.sh
volumes:
- ./parsing_news:/code
ports:
- "8080:8080"
# - "8088:4040" # ngrok
# ngrok:
# build: .
## command: python
# command: python /code/manage.py ngrok --ngrok_command='/ngrok/ngrok' --share_port='8080'
# volumes:
# - ./parsing_news:/code
# depends_on:
# - web
# links:
# - web:127.0.0.1 # нужно как то опрокинуть web:8080 в localhost:8080
## ports:
## - "8088:4040"
celery:
build: .
command: celery -A parsing_news worker --loglevel=info
volumes:
- ./parsing_news:/code
depends_on:
- redis
celery-beat:
build: .
command: celery -A parsing_news beat -S django --loglevel=info --pidfile="/tmp/celerybeat.pid"
volumes:
- ./parsing_news:/code
depends_on:
- redis