websoft9/apps/roles/erpnext/vars/main.yml
2022-05-16 09:04:41 +08:00

30 lines
964 B
YAML

common_install_docker: True
docker_install: False
mariadb_install_server: False
nginx_reverse_proxy_port: "8000"
docker_applications:
- phpmyadmin
init_docker:
erpnext:
db: mariadb
db_name: erpnext
db_username: root
db_password: "123456"
admin_username: Administrator
admin_password: "admin"
service_after: "docker.service"
compose_path: "/data/apps/erpnext/docker-compose.yml"
compose_commands:
- cd /data/apps/erpnext
- public_ip=`wget -O - https://download.websoft9.com/ansible/get_ip.sh | bash`
- sudo sed -i "s/admin/$new_password/g" /data/apps/erpnext/.env
- sudo sed -i "s/123456/$new_password/g" /data/apps/erpnext/.env
- sudo sed -i "s/APP_SITE_URL.*/APP_SITE_URL=$public_ip/g" /data/apps/erpnext/.env
- sudo sed -i "s/APP_SITE_NAME=.*/APP_SITE_NAME=\`$public_ip\`/g" /data/apps/erpnext/.env
- sudo docker volume prune -f
volumes:
- /data/apps/erpnext/volumes