# Docker compose file to manage your deployed images. # Use MySQL server 8 and latest Scada-LTS local build. # Using attached webapps folder as developer you will be able to modify the static content from host os. # Attach shell to stop the tomcat instance and then you will be able to run in JPDA mode. version: '3' services: database: container_name: mysql image: mysql/mysql-server:8.0.32 ports: - "3306:3306" environment: - MYSQL_ROOT_PASSWORD=root - MYSQL_USER=root - MYSQL_PASSWORD=root - MYSQL_DATABASE=scadalts expose: ["3306"] volumes: - ./db_data:/var/lib/mysql:rw - ./db_conf:/etc/mysql:ro command: --log_bin_trust_function_creators=1 scadalts: image: scadalts/scadalts:latest environment: - CATALINA_OPTS=-Xmx2G -Xms2G ports: - "8080:8080" depends_on: - database expose: ["8080", "8000"] volumes: - ./tomcat_log:/usr/local/tomcat/logs:rw links: - database:database command: - /usr/bin/wait-for-it - --host=database - --port=3306 - --timeout=30 - --strict - -- - /usr/local/tomcat/bin/catalina.sh - run mqtt: image: hivemq/hivemq4:latest ports: - "8081:8080" - "1883:1883" expose: [ "8081", "1883" ]