add docker-compose.yml

This commit is contained in:
austnv
2026-06-14 14:31:03 +03:00
parent 96c453f308
commit a8ed704f47
5 changed files with 28 additions and 7 deletions
+24
View File
@@ -0,0 +1,24 @@
services:
backend:
image: python:3.12-alpine
container_name: uvpn-backend
working_dir: /app
volumes:
- ./backend:/app
- /app/.venv
environment:
- UV_COMPILE_BYTECODE=1
- UV_LINK_MODE=copy
expose:
- 8000
command: >
sh -c "pip install --no-cache-dir uv &&
uv sync --frozen &&
fastapi run"
networks:
- remnawave-network
restart: always
networks:
remnawave-network:
external: true