1
0
mirror of https://github.com/newnius/YAO-docs.git synced 2024-07-06 05:15:18 +00:00
YAO-docs/sbin/start_portal.sh

21 lines
562 B
Bash
Raw Permalink Normal View History

2019-04-29 13:09:57 +00:00
#!/bin/bash
docker service create \
--name yao-portal \
--hostname yao-portal \
--constraint node.role==manager \
--network yao-net \
--replicas 1 \
--detach=true \
--publish 80:80 \
2019-12-04 12:29:53 +00:00
--env SITE_SCHEDULER_ADDR=http://yao-scheduler:8080 \
2020-07-08 13:26:46 +00:00
--env SITE_BASE_URL=http://yao.pasalab.jluapp.com \
2019-12-04 12:29:53 +00:00
--env MYSQL_HOST=mysql \
--env MYSQL_PORT=3306 \
--env MYSQL_DATABASE=yao \
--env MYSQL_USER=root \
--env MYSQL_PASSWORD=123456 \
--env REDIS_HOST=redis \
2019-04-29 13:09:57 +00:00
--mount type=bind,source=/etc/localtime,target=/etc/localtime,readonly \
2019-12-04 12:29:53 +00:00
quickdeploy/yao-portal:dev