This commit is contained in:
Ross
2022-07-27 10:06:56 +01:00
parent 8f5c878bab
commit ef478459d8
14 changed files with 701 additions and 645 deletions
+9
View File
@@ -0,0 +1,9 @@
DEBUG=1
SECRET_KEY=w(s0&(_eb058wvmg@44_repv8)r9@5p8fx*g_@c)1dm&d*ew^u
DJANGO_ALLOWED_HOSTS=localhost 127.0.0.1 [::1]
DB_NAME=rad
DB_HOST=db
DB_USER=django
DB_PASSWORD=postgres
DB_PORT=5432
+27
View File
@@ -0,0 +1,27 @@
version: '3.8'
services:
web:
build: ./rad
command: python manage.py runserver 0.0.0.0:8000
volumes:
- ./rad/:/usr/src/rad/
- ../rts/:/usr/src/rad/rts
- ./backups:/usr/src/backups
- ./media:/usr/src/media
- ./static:/usr/src/static
ports:
- 8000:8000
env_file:
- ./.env.dev
db:
image: postgres:14.2-alpine
volumes:
- postgres_data:/var/lib/postgresql/data/
environment:
- POSTGRES_USER=django
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=rad
volumes:
postgres_data: