add backend and docker files
This commit is contained in:
19
docker/docker-compose.yml
Normal file
19
docker/docker-compose.yml
Normal 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
4
docker/restart.sh
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
|
||||
docker-compose down
|
||||
docker-compose up -d
|
Reference in New Issue
Block a user