37 lines
1.0 KiB
YAML
37 lines
1.0 KiB
YAML
---
|
|
services:
|
|
web:
|
|
command: python manage.py runserver 0.0.0.0:8000
|
|
volumes: [./src:/src]
|
|
env_file:
|
|
- path: .env.template
|
|
required: true
|
|
- path: .env
|
|
required: false
|
|
environment:
|
|
DJANGO_RELOAD: true
|
|
DEBUG: true
|
|
ALLOWED_HOSTS: localhost,127.0.0.1
|
|
ports: [127.0.0.1:8000:8000]
|
|
db:
|
|
env_file:
|
|
- path: .env.template
|
|
required: true
|
|
- path: .env
|
|
required: false
|
|
proxy:
|
|
restart: unless-stopped
|
|
ports: [127.0.0.1:80:80]
|
|
environment: [NGINX_HOSTNAME=localhost, NGINX_PORT=80]
|
|
tailwind:
|
|
image: python:3.14-slim
|
|
working_dir: /src
|
|
command: >
|
|
sh -c "apt-get update && apt-get install -y curl &&
|
|
curl -sL https://github.com/tailwindlabs/tailwindcss/releases/latest/download/tailwindcss-linux-x64
|
|
-o /usr/local/bin/tailwindcss &&
|
|
chmod +x /usr/local/bin/tailwindcss &&
|
|
tailwindcss -i ./static/css/input.css -o ./static/css/output.css --watch"
|
|
volumes: [.:/src]
|
|
networks: [frontend]
|