HEX
Server: Apache/2.4.54 (Win64) OpenSSL/1.1.1p PHP/7.4.30
System: Windows NT website-api 10.0 build 20348 (Windows Server 2016) AMD64
User: SYSTEM (0)
PHP: 7.4.30
Disabled: NONE
Upload Files
File: C:/github_repos/ho-xsj-website/docker_rebuild_restart_website.sh
#!/bin/sh

#overwrite config
cp -r production_config.py website/production_config.py

#build
docker build -t website /home/website

#stop
docker stop website
docker rm website

#start
docker run --name=website \
        -d \
    --restart=always \
    -v /home/xsjweb/dv/website:/app/logs \
    -v /etc/localtime:/etc/localtime \
    --network=host \
    website