forked from PUNCH-Cyber/YaraGuardian
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (33 loc) · 787 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
38 lines (33 loc) · 787 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
version: '3'
services:
nginx:
image: nginx:latest
ports:
- "8080:8080"
volumes:
- ./static:/static
- ./configs/nginx:/etc/nginx/conf.d
depends_on:
- web
web:
build: .
environment:
- PYTHONUNBUFFERED=1
- DATABASE_HOST=db
- DATABASE_NAME=postgres
- DATABASE_USER=postgres
- DATABASE_PASS=
command: python3 /usr/local/YaraGuardian/manage.py migrate --noinput
command: gunicorn -k gevent --bind=0.0.0.0:8080 --access-logfile - --error-logfile - YaraGuardian.wsgi:application
volumes:
- .:/usr/local/YaraGuardian
expose:
- "8080"
depends_on:
- db
db:
image: postgres:10.1
volumes:
- postgres_data:/var/lib/postgresql/data/
volumes:
postgres_data: