15 lines
513 B
Text
15 lines
513 B
Text
[Unit]
|
|
Description=Q1-Total Backend Dev
|
|
After=network-online.target
|
|
|
|
[Container]
|
|
Image=docker.io/python:3.12
|
|
Volume=/mnt/data/q1-total-dev/backend:/app:z
|
|
PodmanArgs=--publish=8001:8000 --env=PORT=8000
|
|
Exec=sh -c "cd /app && pip install uv && uv sync && uv run uvicorn app.main:app --host 0.0.0.0 --port 8000"
|
|
Label=traefik.enable=true
|
|
Label=traefik.http.routers.q1-backend-dev.rule=Host('api-dev.q1-total.com.br')
|
|
Label=traefik.http.services.q1-backend-dev.loadbalancer.server.port=8000
|
|
|
|
[Service]
|
|
Restart=always
|