-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
75 lines (70 loc) · 1.58 KB
/
docker-compose.yml
File metadata and controls
75 lines (70 loc) · 1.58 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
services:
backend:
build:
context: .
dockerfile: ./compose/production/django/Dockerfile
command: /start
volumes:
- ./dropper_core:/app/dropper_core
- backend_static:/app/staticfiles
- backend_media:/app/media
- yara_rules:/app/api/analysis/services/yara_rules/rules
env_file:
- ./backend/.env.prod
expose:
- "8000"
depends_on:
- db
networks:
- droppy_network
restart: unless-stopped
frontend:
build:
context: ./droppy-ui
dockerfile: ../compose/production/frontend/Dockerfile
volumes:
- frontend_build:/app/dist
env_file:
- ./droppy-ui/.env
expose:
- "80"
networks:
- droppy_network
restart: unless-stopped
db:
image: postgres:15
volumes:
- postgres_data:/var/lib/postgresql/data/
environment:
- POSTGRES_DB=${SQL_DATABASE}
- POSTGRES_USER=${SQL_USER}
- POSTGRES_PASSWORD=${SQL_PASSWORD}
networks:
- droppy_network
restart: unless-stopped
nginx:
image: nginx:alpine
ports:
- "80:80"
- "443:443"
volumes:
- ./compose/nginx/nginx.prod.conf:/etc/nginx/conf.d/default.conf
- ./compose/nginx/ssl:/etc/nginx/ssl
- backend_static:/app/staticfiles
- backend_media:/app/media
- frontend_build:/app/frontend
depends_on:
- backend
- frontend
networks:
- droppy_network
restart: unless-stopped
networks:
droppy_network:
driver: bridge
volumes:
postgres_data:
backend_static:
backend_media:
yara_rules:
frontend_build: