forked from aboutcode-org/vulnerablecode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
45 lines (39 loc) · 913 Bytes
/
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
version: "3"
services:
db:
image: postgres:13
env_file:
- docker.env
volumes:
- db_data:/var/lib/postgresql/data/
vulnerablecode:
build: .
command: /bin/sh -c "
./manage.py migrate &&
./manage.py collectstatic --no-input --verbosity 0 --clear &&
gunicorn vulnerablecode.wsgi:application -u nobody -g nogroup --bind :8000 --timeout 600 --workers 8"
env_file:
- docker.env
expose:
- 8000
volumes:
- /etc/vulnerablecode/:/etc/vulnerablecode/
- static:/var/vulnerablecode/static/
depends_on:
- db
nginx:
image: nginx
ports:
- 80:80
- 443:443
env_file:
- docker.env
volumes:
- ./etc/nginx/conf.d/:/etc/nginx/conf.d/
- static:/var/vulnerablecode/static/
- /var/www/html:/var/www/html
depends_on:
- vulnerablecode
volumes:
db_data:
static: