add backend and docker files

This commit is contained in:
Allen
2023-09-23 10:16:49 -05:00
parent ca5eeb3e7b
commit 044579b0d4
12 changed files with 254 additions and 0 deletions

19
docker/docker-compose.yml Normal file
View File

@ -0,0 +1,19 @@
version: "3.3"
services:
nginx:
image: nginx:latest
restart: unless-stopped
ports:
- "8080:80"
volumes:
- ../frontend:/usr/share/nginx/html
- ./volumes/config:/usr/share/nginx/html
docker-django:
image: docker-django
restart: unless-stopped
ports:
- "8000:8000"
volumes:
- ../backend/django:/home/app/webapp

4
docker/restart.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/bash
docker-compose down
docker-compose up -d