version: "2"
services:
  ea1_platform:
    build: .
    image: ea1_platform:1.0
    container_name: ea1_platform
    volumes:
      - ./logs/:/eaplatform/platform-mgnt-service/logs
      - ./run.sh:/eaplatform/platform-mgnt-service/run.sh
    privileged: true
    env_file:
      - ../env/app.env
    networks:
      - ea_net
    ports:
      - "18030:8080"
      - "12223:22"
    # extra_hosts:
    #   nacos-server: 172.20.13.190
    #   redis-server: 172.20.13.190
    #   elasticsearch-server: 172.20.13.190
    #   postgresql-server: 172.20.13.190
    #   rocketmq-server: 172.20.13.190
    #   sftp-server: 172.20.13.190

networks:
  ea_net:
    external: true
