This repository has been archived by the owner on Sep 3, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
79 lines (72 loc) · 1.64 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
version: '3'
services:
db:
image: postgres:latest
hostname: db
restart: unless-stopped
volumes:
- pg_data:/var/lib/postgresql/data
ports:
- "5432:5432"
environment:
POSTGRES_DB: $DB_NAME
POSTGRES_USER: $DB_USER
POSTGRES_PASSWORD: $DB_PASSWORD
networks:
- db
appsec_app:
image: ghcr.io/root-de/applied-cybersecurity-django:latest
hostname: appsec_app
restart: unless-stopped
# command: python /src/applied_cybersec/manage.py runserver 0.0.0.0:8000
volumes:
- ./src:/src
- statics:/static
ports:
- "8000:8000"
networks:
- frontend
- db
environment:
WAIT_HOSTS: db:5432
WAIT_TIMEOUT: 60
DJANGO_AUTO_RELOAD: true
DJANGO_SUPERUSER_USERNAME: $DJANGO_SUPERUSER_USERNAME
DJANGO_SUPERUSER_PASSWORD: $DJANGO_SUPERUSER_PASSWORD
DJANGO_SUPERUSER_EMAIL: $DJANGO_SUPERUSER_EMAIL
DB_NAME: $DB_NAME
DB_USER: $DB_USER
DB_PASSWORD: $DB_PASSWORD
GITHUB_PAT: $GITHUB_PAT
GITHUB_ACCS: $GITHUB_ACCS
USERS_OR_ORGS: $USERS_OR_ORGS
nginx:
image: nginx:latest
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/conf.d/:/etc/nginx/conf.d/:ro
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./nginx/certs:/etc/nginx/certs:ro
- statics:/static:ro
networks:
- frontend
adminer:
image: adminer:latest
hostname: adminer
restart: unless-stopped
ports:
- "8080:8080"
depends_on:
- db
networks:
- db
volumes:
pg_data:
statics:
pgadmin:
networks:
frontend:
db: