chore(init): project setup with Docker support

This commit is contained in:
Leons Aleksandrovs
2025-07-07 13:21:35 +03:00
commit 4284804536
28 changed files with 8353 additions and 0 deletions

42
development.yml Normal file
View File

@@ -0,0 +1,42 @@
services:
frontend:
build:
context: ./frontend
dockerfile: ../Dockerfile.frontend
networks:
- project-network
# ports:
# - "5173:5173"
volumes:
# Mount frontend directory for hot reloading
- ./frontend:/app
# Ignore node_modules directory
- /app/node_modules
backend:
build:
context: ./backend
dockerfile: ../Dockerfile.backend
networks:
- project-network
# ports:
# - "8080:8080"
volumes:
# Mount backend directory for hot reloading
- ./backend:/app
# Ignore node_modules directory
- /app/node_modules
caddy:
image: caddy:2-alpine
restart: unless-stopped
networks:
- project-network
ports:
- "8000:80"
volumes:
- ./caddy/Caddyfile:/etc/caddy/Caddyfile
networks:
project-network:
driver: bridge