-
Notifications
You must be signed in to change notification settings - Fork 31
/
docker-micro.yml
40 lines (37 loc) · 1003 Bytes
/
docker-micro.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
# Builds the vuln_django "micro" stage. Adds an Nginx proxy, and a postgres DB.
# You will need to run migrations manually. See README.
version: "3.7"
services:
vuln-proxy:
image: nginx
volumes:
- ./nginx.conf.micro:/etc/nginx/nginx.conf:ro
- ./static:/opt/app/vuln_django/static:ro
ports:
- 8020:8020
depends_on:
- vuln-django
vuln-django:
image: vuln_django:micro
build:
context: .
target: micro
depends_on:
- db
environment:
- DJANGO_SUPERUSER_USERNAME=admin
- DJANGO_SUPERUSER_PASSWORD=adminpassword
- SQL_ENGINE=django.db.backends.postgresql
- SQL_HOST=db
- SQL_PORT=5432
- SQL_DATABASE=django_db
- SQL_USER=django_user
- SQL_PASSWORD=django_password
db:
image: postgres
restart: always
environment:
- POSTGRES_DB=django_db
- POSTGRES_USER=django_user
- POSTGRES_PASSWORD=django_password