services:
  editor:
    build:
      context: .
      dockerfile: Dockerfile
    container_name: web4beginners-editor
    ports:
      - "4173:4173"
    volumes:
      - .:/app
    working_dir: /app
    command: ["php", "-d", "opcache.enable_cli=0", "-S", "0.0.0.0:4173", "scripts/editor_server.php"]
    restart: unless-stopped
