forked from EHV/sejeteralo
Replace 5-step pipeline (build/test/push/push/deploy) with single docker:dind step that builds and deploys in-place via Docker socket. - .woodpecker.yml: single-step DinD, 1 secret (SECRET_KEY) - docker-compose.fabio.yml: overlay with SERVICE_* labels for Registrator - docker-compose.yml: add ports without host bind (Fabio/Traefik routing) - docker-compose.dev.yml: named volumes with bind driver - Dockerfiles: install curl, HEALTHCHECK via curl /api/health - Makefile: docker-fabio, consul-services, fabio-routes targets Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
39 lines
777 B
YAML
39 lines
777 B
YAML
services:
|
|
backend:
|
|
build:
|
|
target: development
|
|
environment:
|
|
DATABASE_URL: sqlite+aiosqlite:///./sejeteralo.db
|
|
SECRET_KEY: dev-secret-key
|
|
DEBUG: "true"
|
|
CORS_ORIGINS: '["http://localhost:3000"]'
|
|
ports: !override
|
|
- "8000:8000"
|
|
volumes:
|
|
- backend-sources:/app
|
|
|
|
frontend:
|
|
build:
|
|
target: development
|
|
environment:
|
|
NUXT_PUBLIC_API_BASE: http://localhost:8000/api/v1
|
|
ports: !override
|
|
- "3000:3000"
|
|
- "24678:24678"
|
|
volumes:
|
|
- frontend-sources:/app
|
|
|
|
volumes:
|
|
backend-sources:
|
|
driver: local
|
|
driver_opts:
|
|
type: none
|
|
o: bind
|
|
device: ../backend
|
|
frontend-sources:
|
|
driver: local
|
|
driver_opts:
|
|
type: none
|
|
o: bind
|
|
device: ../frontend
|