This commit is contained in:
lubiana 2025-07-28 19:54:33 +02:00
commit ad8c238e78
Signed by: lubiana
SSH key fingerprint: SHA256:vW1EA0fRR3Fw+dD/sM0K+x3Il2gSry6YRYHqOeQwrfk
53 changed files with 10091 additions and 0 deletions

41
docker-compose.dev.yml Normal file
View file

@ -0,0 +1,41 @@
version: '3.8'
services:
gocheck-dev:
build:
context: .
dockerfile: Dockerfile.dev
container_name: gocheck-dev
ports:
- "8080:8080" # Backend port
- "5173:5173" # Frontend port
volumes:
# Mount source code for hot reloading
- .:/app
# Exclude node_modules to avoid conflicts
- /app/frontend/node_modules
# Exclude backend Go modules to avoid conflicts
- /app/backend/go.sum
- /app/backend/go.mod
# Persist data directory
- gocheck-dev-data:/app/backend/data
environment:
- NODE_ENV=development
- GO_ENV=development
# Enable Vite host binding for external access
- VITE_HOST=0.0.0.0
networks:
- gocheck-dev-network
# Enable interactive mode for better development experience
stdin_open: true
tty: true
# Restart policy for development
restart: unless-stopped
networks:
gocheck-dev-network:
driver: bridge
volumes:
gocheck-dev-data:
driver: local