-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-develop.yml
More file actions
58 lines (44 loc) · 980 Bytes
/
Copy pathdocker-compose-develop.yml
File metadata and controls
58 lines (44 loc) · 980 Bytes
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
version: '3.7'
services:
django: &django
build:
context: .
dockerfile: docker/python/develop/Dockerfile
command: bash
entrypoint: /scripts/web_entrypoint.sh
environment:
SECRET_KEY: ${SECRET_KEY}
DJANGO_DEPLOYMENT: 0
#DB config
DB_NAME: ${DB_NAME}
DB_USER: ${DB_USER}
DB_PASSWORD: ${DB_PASSWORD}
DB_HOST_IP: ${DB_HOST_IP}
DB_HOST_PORT: 5432
depends_on:
- redis
- celery
volumes:
- ./code:/code
ports:
- 9000:8000 #For django
- 9555:5555 #When flower is up on port 5555
stdin_open: true
tty: true
networks:
- backend
celery:
<<: *django
command: bash -c "celery -A sNeeds worker --loglevel=info && celery -A sNeeds beat --loglevel=info"
ports: []
entrypoint: []
depends_on:
- redis
redis:
image: redis:5.0.5-alpine
ports:
- 6379:6379
networks:
- backend
networks:
backend: