services: backend: build: context: . dockerfile: docker/Dockerfile target: builder # Stop at build stage for dev command: air -c .air.toml ports: - "32768:32768" volumes: - .:/workspace:cached # Bind mount for live editing - data:/data # Named volume for persistent data working_dir: /workspace environment: - CGO_ENABLED=0 volumes: data: