version: '3.8'

services:
  rfcp-backend:
    build:
      context: ./backend
      dockerfile: Dockerfile
    container_name: rfcp-backend
    restart: unless-stopped
    volumes:
      - ./data/terrain:/app/data/terrain:ro
    ports:
      - "127.0.0.1:8090:8000"
    environment:
      - ENVIRONMENT=production

  rfcp-frontend:
    image: nginx:alpine
    container_name: rfcp-frontend
    restart: unless-stopped
    volumes:
      - ./frontend/dist:/usr/share/nginx/html:ro
    ports:
      - "127.0.0.1:3000:80"
