1 頁 (共 1 頁)

docker

發表於 : 2018-04-29 21:31:56
yehlu
docker-compose.yml

代碼: 選擇全部

mariadb:
  container_name: mariadb
  restart: always
  image: mariadb:latest
  ports:
    - "3306:3306"
  environment:
    - MYSQL_ROOT_PASSWORD=secret
    - MYSQL_DATABASE=homestead
    - MYSQL_USER=homestead
    - MYSQL_PASSWORD=secret
  volumes:
    - /home/Dockers/mariadb:/var/lib/mysql/

tomcat:
  container_name: tomcat
  restart: always
  image: tomcat:latest
  links:
    - mariadb:db
  ports:
    - "8080:8080"
  environment:
    - DB_HOST=mariadb
  volumes:
    - /home/Dockers/auto/tomcat/conf:/usr/local/tomcat/conf
    - /dasamx:/dasamx/


/dasamx/e3010001/util/setup.sh text

代碼: 選擇全部

1) Database Type = MySQL
2) Database Host = db
3) Database Name = e3010001
4) Database User = root
5) Database Password = secret
6) New Database Password =
7) E3 Work Path = /dasamx/e3010001
8) Web server.xml = /usr/local/tomcat/conf/server.xml