-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
57 lines (55 loc) · 1.59 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
57 lines (55 loc) · 1.59 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
45
46
47
48
49
50
51
52
53
54
55
56
57
services:
backend:
build:
context: .
dockerfile: Dockerfile.dev
container_name: selfhostly-backend-dev
ports:
- "8080:8080"
environment:
SERVER_ADDRESS: ":8080"
DATABASE_PATH: /app/data/selfhostly.db
APPS_DIR: /app/apps
CLOUDFLARE_API_TOKEN: ${CLOUDFLARE_API_TOKEN:-}
CLOUDFLARE_ACCOUNT_ID: ${CLOUDFLARE_ACCOUNT_ID:-}
AUTH_ENABLED: ${AUTH_ENABLED:-false}
# Development settings
GIN_MODE: debug
volumes:
# Mount source code for live reload (Air will watch these files)
- .:/app
# Mount data directories
- ./data:/app/data
- ./apps:/app/apps
# Mount Docker socket for container management
- /var/run/docker.sock:/var/run/docker.sock
# Exclude tmp directory from host
- /app/tmp
networks:
- selfhostly-network
restart: unless-stopped
frontend:
build:
context: ./web
dockerfile: Dockerfile.dev
container_name: selfhostly-frontend-dev
ports:
- "5173:5173"
environment:
# Vite will proxy /api and /auth requests to the backend container
VITE_API_BASE: http://backend:8080
volumes:
# Mount web source for live reload
- ./web:/app
# Prevent overwriting node_modules from host
- /app/node_modules
networks:
- selfhostly-network
depends_on:
- backend
restart: unless-stopped
networks:
# Core API network - must match constants.CoreAPINetwork in internal/constants/constants.go
selfhostly-network:
name: selfhostly-network # Use exact name, no project prefix
driver: bridge