Added basic documentation server
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
[Unit]
|
||||
Description=Documentation Server
|
||||
|
||||
[Container]
|
||||
Image={{ registry_url }}/doc-web:1.0
|
||||
PublishPort=8081:80
|
||||
|
||||
# Use volume
|
||||
Volume=/home/{{ansible_user}}/srv/docs:/srv:Z
|
||||
|
||||
[Service]
|
||||
# Restart service when sleep finishes
|
||||
Restart=always
|
||||
# Extend Timeout to allow time to pull the image
|
||||
TimeoutStartSec=900
|
||||
# ExecStartPre flag and other systemd commands can go here, see systemd.unit(5) man page.
|
||||
# ExecStartPre=/usr/share/mincontainer/setup.sh
|
||||
|
||||
[Install]
|
||||
# Start by default on boot
|
||||
WantedBy=multi-user.target default.target
|
||||
Reference in New Issue
Block a user