services:
  checkout:
    build: .
    container_name: checkout
    restart: unless-stopped
    ports:
      - "9001:9000"  # Expose PHP-FPM on port 9001
    networks:
      - app_network

  nginx:
    image: nginx:latest
    container_name: nginx_server
    restart: unless-stopped
    ports:
      - "80:80"  # Expose Nginx on port 80
    volumes:
      - ./nginx/default.conf:/etc/nginx/conf.d/default.conf
    depends_on:
      - checkout
    networks:
      - app_network

networks:
  app_network:
    driver: bridge