init
This commit is contained in:
commit
4fcbdaa4db
21 changed files with 589 additions and 0 deletions
26
docker-compose.yml
Normal file
26
docker-compose.yml
Normal file
|
@ -0,0 +1,26 @@
|
|||
services:
|
||||
torreta:
|
||||
build: .
|
||||
environment:
|
||||
DJANGO_SUPERUSER_PASSWORD: "admin"
|
||||
command: >
|
||||
sh -c "python manage.py migrate &&
|
||||
python manage.py collectstatic --no-input &&
|
||||
python manage.py createsuperuser --username "admin" --email=admin@admin.com --noinput
|
||||
python manage.py runserver 0.0.0.0:8000"
|
||||
volumes:
|
||||
- static:/app/staticfiles
|
||||
ports:
|
||||
- "8000:8000"
|
||||
nginx:
|
||||
image: nginx:latest
|
||||
ports:
|
||||
- "80:80"
|
||||
restart: always
|
||||
volumes:
|
||||
- static:/app/staticfiles
|
||||
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
|
||||
depends_on:
|
||||
- torreta
|
||||
volumes:
|
||||
static:
|
Loading…
Add table
Add a link
Reference in a new issue