@ -72,6 +72,7 @@ case $ROLE in
ttyd -p 3787 bash &
chmod 644 /etc/mysql/mysql.conf.d/mysqld.cnf
mysqld --user=root
mysql -e "create database $MYSQL_DATABASE ; GRANT ALL PRIVILEGES ON $MYSQL_DATABASE.* TO $MYSQL_USER@localhost IDENTIFIED BY '$MYSQL_PASSWORD'"
tail -f /dev/null
#done
;;
@ -327,6 +327,8 @@ services:
- NET_ADMIN
user: root
entrypoint: ["sec_bootstrapmysql", "role=workerservice", "sec_master_service_name=masterservice", "sec_worker_service_name=workerservice"]
ports:
- "\${R_PORT3}:3787" # console
networks:
- ${HYBRID_NETWORK}
volumes: