version: '3.8'

services:
  app:
    build:
      context: .
      dockerfile: Dockerfile
    container_name: e-bangunan
    platform: linux/amd64 
    volumes:
      - ./:/var/www/html
    ports:
      - "8000:8000"
    working_dir: /var/www/html
    command: php artisan serve --host=0.0.0.0
    depends_on:
      - oracle

  oracle:
    image: gvenzl/oracle-xe:21-slim
    container_name: oracle_db
    platform: linux/amd64
    ports:
      - "1521:1521"
    environment:
      - ORACLE_PASSWORD=sbyr
