Update main.yml

This commit is contained in:
qiaofeng1227 2022-07-13 08:21:08 +08:00 committed by GitHub
parent 3d6d8fe326
commit 4bb8c8e455
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,26 +1 @@
common_install_docker: True
nginx_reverse_proxy_port: "9001"
nginx_certbot: True
init_docker:
metabase:
admin_username: "admin@metabase.local"
admin_password: "123456"
db: mysql
db_name: metabase
db_username: root
db_password: "123456"
service_after: "docker.service"
compose_path: "/data/apps/metabase/docker-compose.yml"
compose_commands:
- sudo sed -i "s/123456/$new_password/g" /data/apps/metabase/.env
volumes:
- /data/apps/metabase/volumes
commands:
- sudo systemctl stop nginx
- cd /opt
- chmod +x create_users.sh
- MB_HOSTNAME=localhost MB_PORT=9001 MB_ADMIN_PASSWORD=$new_password ./create_users.sh
- sudo systemctl start nginx