You can test the installation with the following ssh command on the server (CTRL+C to stop it):
$
cd /atd_server
$
sudo
docker-compose up
To have an automatic start of the software when the server boots, the following SSH commands
have to be executing on the server terminal:
● Create the ATD server service and launch rules:
$
sudo
nano /etc/systemd/system/docker-compose-atd.service
[Unit]
Description=ATD server with docker compose
Requires=docker.service
After=docker.service
[Service]
Type=oneshot
RemainAfterExit=true
#Directory with the docker-compose.yml file
WorkingDirectory=/atd_server/
ExecStart=/usr/local/bin/docker-compose up -d
--remove-orphans
ExecStop=/usr/local/bin/docker-compose down
[Install]
WantedBy=multi-user.target
● Start the docker and ATD server service:
$
sudo
systemctl daemon-reload
$
sudo
systemctl enable docker
$
sudo
systemctl enable docker-compose-atd.service
$
sudo
systemctl start docker-compose-atd.service
$
sudo
systemctl status docker-compose-atd.service
ACOEM
|
ATD-300/ATD-301
|
User Manual FW 1.0.0.4 52