mirror of
https://github.com/seriousm4x/UpSnap.git
synced 2026-07-21 21:22:53 -04:00
19 lines
665 B
YAML
19 lines
665 B
YAML
version: "3"
|
|
services:
|
|
wol:
|
|
container_name: django-wol
|
|
build: .
|
|
env_file:
|
|
- .env
|
|
command:
|
|
- /bin/sh
|
|
- -c
|
|
- |
|
|
python manage.py makemigrations
|
|
python manage.py migrate
|
|
python manage.py collectstatic --noinput
|
|
python -u manage.py shell -c "from django.contrib.auth.models import User; User.objects.create_superuser('$DJANGO_SUPERUSER_USER', password='$DJANGO_SUPERUSER_PASSWORD') if not User.objects.filter(username='$DJANGO_SUPERUSER_USER').exists() else print('Django user exists')"
|
|
python manage.py runserver 0.0.0.0:8000
|
|
network_mode: host
|
|
restart: always
|