This commit is contained in:
Gerard Gascón 2025-04-11 20:42:55 +02:00
commit 4fcbdaa4db
21 changed files with 589 additions and 0 deletions

26
docker-compose.yml Normal file
View 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: