forked from yogeshojha/rengine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
97 lines (93 loc) · 2.56 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
version: '3.8'
services:
db:
restart: always
image: "postgres:12.3-alpine"
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_PORT=5432
volumes:
- postgres_data:/var/lib/postgresql/data/
networks:
- rengine_network
web:
restart: always
image: docker.pkg.github.com/yogeshojha/rengine/rengine:latest
build: .
command: gunicorn reNgine.wsgi:application --bind 0.0.0.0:8000
volumes:
- .:/app
- static_volume:/app/staticfiles
- media_volume:/app/tools/scan_results
depends_on:
- db
- redis
networks:
rengine_network:
aliases:
- rengine
proxy:
restart: always
image: nginx:alpine
ports:
- 80:80/tcp
- 443:443/tcp
depends_on:
- web
- db
- redis
secrets:
- source: proxy.ca
target: /etc/nginx/certs/rengine_chain.pem
- source: proxy.cert
target: /etc/nginx/certs/rengine.pem
- source: proxy.key
target: /etc/nginx/certs/rengine_rsa.key
volumes:
- ./config/nginx/rengine.conf:/etc/nginx/conf.d/rengine.conf:ro
- static_volume:/app/staticfiles
- media_volume:/app/tools/scan_results
networks:
- rengine_network
redis:
image: redis:alpine
networks:
- rengine_network
celery:
build: .
command: celery -A reNgine worker -l INFO
volumes:
- ./celery_storage:/celery_storage
environment:
- DEBUG=1
volumes:
- static_volume:/app/staticfiles
- media_volume:/app/tools/scan_results
depends_on:
- redis
networks:
- rengine_network
celery-beat:
build: .
command: celery -A reNgine beat -l INFO --scheduler django_celery_beat.schedulers:DatabaseScheduler
environment:
- DEBUG=1
depends_on:
- redis
networks:
- rengine_network
networks:
rengine_network:
volumes:
postgres_data:
static_volume:
media_volume:
secrets:
proxy.ca:
file: ./secrets/certs/rengine_chain.pem
proxy.key:
file: ./secrets/certs/rengine_rsa.key
proxy.cert:
file: ./secrets/certs/rengine.pem