spug自动化运维平台部署
开源企业官网:https://www.spug.cc
docker-compose部署
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
| version: "3.3" services: db: image: mysql:5.7 container_name: spug-db restart: always command: --port 3306 --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci volumes: - /data/spug/mysql:/var/lib/mysql environment: - MYSQL_DATABASE=spug - MYSQL_USER=spug - MYSQL_PASSWORD=spug.cc - MYSQL_ROOT_PASSWORD=spug.cc spug: image: registry.cn-hangzhou.aliyuncs.com/zznn/mycentos:spug-service container_name: spug privileged: true restart: always volumes: - /data/spug/service:/data/spug - /data/spug/repos:/data/repos ports: - "80:80" environment: - MYSQL_DATABASE=spug - MYSQL_USER=spug - MYSQL_PASSWORD=spug.cc - MYSQL_HOST=db - MYSQL_PORT=3306 depends_on: - db
|
初始化登录管理员用户,以下操作会创建一个用户名为 admin
密码为 test123
的管理员账户,可自行替换管理员账户/密码。
1
| docker exec spug init_spug admin test123
|
登录:http://localhost