oramap/docker-compose.yml
dvirlabs 5a7585f755
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Convert to full-stack app with Docker support
- Restructured app with backend/ and public/ directories
- Created Express backend with /api/search endpoint
- Added health check endpoint at /api/health
- Optimized Dockerfile with multi-stage build
- Added docker-compose.yml for easy deployment
- Updated README with comprehensive documentation
- Added .dockerignore for optimized builds
- Backend listens on 0.0.0.0 for Docker compatibility
2026-03-24 08:47:26 +02:00

28 lines
597 B
YAML

version: '3.8'
services:
oramap:
build:
context: .
dockerfile: Dockerfile
image: oramap:latest
container_name: oramap-app
ports:
- "3000:3000"
environment:
- NODE_ENV=production
- PORT=3000
restart: unless-stopped
healthcheck:
test: ["CMD", "node", "-e", "require('http').get('http://localhost:3000/api/health', (r) => {process.exit(r.statusCode === 200 ? 0 : 1)})"]
interval: 30s
timeout: 3s
retries: 3
start_period: 5s
networks:
- oramap-network
networks:
oramap-network:
driver: bridge