Vassteel wrote:so I wrote down every command I needed to do while I fumbled my way through getting the map setup
It prob could be shorter but I don't know enough about Linux stuff to know that
sudo apt-get update
sudo apt-get remove docker docker-engine docker.io
sudo apt install docker.io
sudo systemctl start docker
sudo systemctl enable docker
docker --version
docker pull andyleap/hnh-auto-mapper
docker run -v /srv/hnh-map:/map -p 80:8080 andyleap/hnh-auto-mapper:v-3
vim /lib/systemd/system/docker.hnhmap.service
I for insert
P for Paste
[Unit]
Description=HnH map
After=docker.service
Requires=docker.service
[Service]
TimeoutStartSec=0
Restart=always
ExecStartPre=-/usr/bin/docker exec %n stop
ExecStartPre=-/usr/bin/docker rm %n
ExecStartPre=/usr/bin/docker pull andyleap/hnh-auto-mapper:v-3
ExecStart=/usr/bin/docker run --rm --name %n -v /srv/hnh-map:/map -p 80:8080 andyleap/hnh-auto-mapper:v-3
[Install]
WantedBy=default.target
Escape :wq
service docker.hnhmap enable
service docker.hnhmap start
Close SSH
Navigate to your URL
Login admin/admin
Create new admin dont forget the check boxes
create user accounts check applicaple boxes
Generate Upload tokens
put url/token in client
restart client
hope it helps
Instead of custom service you could perhaps use dockers own autostart functionality as it is easier etc. https://docs.docker.com/engine/reference/run/#restart-policies---restart Basically adding --restart=always argument when you start the container I think.