backend api, swagger, tooling, frontend skeleton

This commit is contained in:
2026-01-21 22:05:02 +01:00
parent a9d1ad79ca
commit 88624f3bed
107 changed files with 34393 additions and 6 deletions

34
docker-compose.yml Normal file
View File

@@ -0,0 +1,34 @@
version: '3.9'
services:
backend:
image: golang:1.24
working_dir: /app/backend
command: bash -lc "go run ./cmd/app"
environment:
PORT: 8080
DATABASE_DRIVER: sqlite3
DATABASE_URL: file:./data/matosbox.db?_fk=1
ATTACHMENTS_DIR: ./data/pieces_jointes
BACKUP_DIR: ./data/backups
MAX_UPLOAD_MB: 50
volumes:
- ./:/app
- ./data:/app/data
ports:
- "8080:8080"
postgres:
profiles: ["postgres"]
image: postgres:16
environment:
POSTGRES_DB: matosbox
POSTGRES_USER: matosbox
POSTGRES_PASSWORD: matosbox
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
volumes:
postgres_data: