-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
76 lines (69 loc) · 1.63 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
67
68
69
70
71
72
73
74
75
76
version: '3.7'
networks:
webservice_network:
driver: bridge
services:
application:
build:
context: .
dockerfile: Dockerfile
environment:
- DEBUG=1
- DB_PASS=A4D&q*m47!bMmT82LXEC9^!dS
- DB_HOST=postgres
- DB_PORT=5432
- DB_USER=application
- DB_NAME=application
- DJANGO_ALLOWED_HOSTS=localhost 127.0.0.1 [::1]
ports:
- 8000:8000
depends_on:
- postgres
volumes:
- ./application:/app/
- '/app/ve'
networks:
- webservice_network
postgres:
image: postgres:12.2-alpine
environment:
- POSTGRES_PASSWORD=A4D&q*m47!bMmT82LXEC9^!dS
- POSTGRES_PORT=5432
- POSTGRES_USER=application
- POSTGRES_DB=application
volumes:
- ./pgdata/:/var/lib/postgresql/data/
ports:
- 5432:5432
networks:
- webservice_network
redis:
image: redis:alpine
networks:
- webservice_network
celery:
build:
context: .
dockerfile: Dockerfile
command: celery -A application worker -l info
environment:
- DEBUG=1
- SECRET_KEY=dbaa1_i7%*3r9-=z-+_mz4r-!qeed@(-a_r(g@k8jo8y3r27%m
- DJANGO_ALLOWED_HOSTS=localhost 127.0.0.1 [::1]
depends_on:
- redis
networks:
- webservice_network
celery-beat:
build:
context: .
dockerfile: Dockerfile
command: celery -A application beat -l info
environment:
- DEBUG=1
- SECRET_KEY=dbaa1_i7%*3r9-=z-+_mz4r-!qeed@(-a_r(g@k8jo8y3r27%m
- DJANGO_ALLOWED_HOSTS=localhost 127.0.0.1 [::1]
depends_on:
- redis
networks:
- webservice_network