restart_modocot_backend.sh 327 Bytes
Newer Older
Dominik Vayhinger's avatar
Dominik Vayhinger committed
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash
# Stop the running backend
docker stop modocot-backend

# Delete the existing container
docker rm modocot-backend

# Pull the new version from DockerHub
docker pull hftstuttgart/modocot-backend

# Build the container and start it
docker run --name modocot-backend -p 8888:8081 hftstuttgart/modocot-backend:latest &