24 lines
No EOL
633 B
YAML
24 lines
No EOL
633 B
YAML
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:4555"
|
|
volumes:
|
|
- static:/app/staticfiles
|
|
nginx:
|
|
image: nginx:latest
|
|
ports:
|
|
- "4555:80"
|
|
restart: always
|
|
volumes:
|
|
- static:/app/staticfiles
|
|
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
|
|
depends_on:
|
|
- torreta
|
|
volumes:
|
|
static: |