| 1234567891011121314151617181920212223242526272829303132 |
- version: '3.8'
- services:
- backend:
- build:
- context: ./backend
- dockerfile: Dockerfile
- ports:
- - "3001:3001"
- volumes:
- - ./backend/uploads:/app/uploads
- environment:
- - NODE_ENV=production
- - JWT_SECRET=${JWT_SECRET:-change_this_secret_in_production}
- - DB_HOST=${DB_HOST}
- - DB_PORT=${DB_PORT:-3306}
- - DB_USER=${DB_USER}
- - DB_PASSWORD=${DB_PASSWORD}
- - DB_NAME=${DB_NAME:-gestion_locative}
- restart: unless-stopped
- frontend:
- build:
- context: ./frontend
- dockerfile: Dockerfile
- args:
- VITE_API_URL: http://localhost:3001
- ports:
- - "3000:80"
- depends_on:
- - backend
- restart: unless-stopped
|