-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
44 lines (40 loc) · 1.11 KB
/
docker-compose.dev.yml
File metadata and controls
44 lines (40 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
version: "3.9"
# Standalone dev compose for Windows/macOS
# Usage: docker compose -f docker-compose.dev.yml up --build
# UI: http://localhost:3000 | API: http://localhost:3000/api
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
target: dev
container_name: pitun-backend
volumes:
- ./backend/app:/app/app
- ./backend/tests:/app/tests
- ./backend/alembic:/app/alembic
- ./backend/alembic.ini:/app/alembic.ini
- ./data:/app/data
- ./scripts:/app/scripts
environment:
- SECRET_KEY=dev-secret
- DATABASE_URL=sqlite:////app/data/pitun.db
- CORS_ORIGINS=http://localhost:3000,http://localhost:5173
- XRAY_BINARY=/bin/false
- XRAY_CONFIG_PATH=/tmp/pitun/config.json
- XRAY_LOG_LEVEL=debug
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: pitun-frontend
nginx:
image: nginx:1.25-alpine
container_name: pitun-nginx
ports:
- "3000:80"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
- backend
- frontend