version: "3.9"
services:
  mongo:
    image: mongo:7
    restart: unless-stopped
    ports: ["27017:27017"]
    volumes: [mongo-data:/data/db]

  mysql:
    image: mysql:8.4
    restart: unless-stopped
    ports: ["3306:3306"]
    environment:
      MYSQL_ROOT_PASSWORD: root
      MYSQL_DATABASE: delta_terminal
    volumes: [mysql-data:/var/lib/mysql]

  backend:
    build: .
    depends_on: [mongo, mysql]
    env_file: .env
    ports: ["4000:4000"]

volumes:
  mongo-data:
  mysql-data:
