services:
  app:
    build:
      context: .
      dockerfile: docker/php/Dockerfile
    container_name: sigodd_app
    environment:
      APP_ENV: prod
      APP_DEBUG: "false"
      APP_SECRET: 5dbe3f64154f8ed9f05406a0c26d6fd4
      DATABASE_URL: "mysql://root:6!5vHXe83hly@10.209.0.60:3306/mes_ia_odd"
      MISTRAL_API_KEY: csVx9K64zDP09MXzaZUW4UBkg9hOGhVN
      TRUSTED_PROXIES: "127.0.0.1"
    volumes:
      - .:/var/www/html
      - /var/www/html/vendor
    networks:
      - sigodd

  nginx:
    image: nginx:latest
    container_name: sigodd_nginx
    ports:
      - "8080:80"
    volumes:
      - .:/var/www/html
      - ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
    depends_on:
      - app
    networks:
      - sigodd

networks:
  sigodd:
