Build a docker image and push it to a registry.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

systemd-service.template 261B

123456789101112131415
  1. [Unit]
  2. Description={{ service_name }}
  3. Requires=docker.service
  4. Wants=docker.service
  5. [Service]
  6. TimeoutStartSec=100
  7. Restart=always
  8. RestartSec=2s
  9. ExecStop=/usr/bin/docker stop {{ service_name }}
  10. ExecStart={{ docker_command }}
  11. [Install]
  12. WantedBy=multi-user.target