1
0
forked from EHV/sejeteralo
Files
sejeteralo/docker/docker-compose.dev.yml
syoul 45253ba705 Migrate CI to single-step DinD with Fabio/Consul
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>
2026-03-13 18:15:12 +01:00

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