Skip to content

Instantly share code, notes, and snippets.

@thedoc31
Created April 26, 2024 17:12
Show Gist options
  • Save thedoc31/02b32e54eb7c29239909fbfbfda8cf04 to your computer and use it in GitHub Desktop.
Save thedoc31/02b32e54eb7c29239909fbfbfda8cf04 to your computer and use it in GitHub Desktop.
Using official httpd apache container with systemd for Rundeck
[Unit]
Description=Apache httpd reverse proxy docker container for Rundeck SAML support
Documentation=https://httpd.apache.org/docs/2.4/
After=docker.service
After=rundeck.service
Requires=docker.service
[Service]
Restart=on-failure
TimeoutStartSec=0
ExecStartPre=-/usr/bin/docker kill httpd
ExecStartPre=-/usr/bin/docker rm httpd
ExecStart=/usr/bin/docker run --name httpd \
-p 80:80 \
-p 443:443 \
--link rundeck:rundeck \
-v /apps/docker-volumes/httpd/conf:/usr/local/apache2/conf:rw \
-v /apps/docker-volumes/httpd/logs:/usr/local/apache2/logs:rw \
-v /apps/docker-volumes/httpd/docroot:/usr/local/apache2/docroot:ro \
httpd:latest
ExecStop=/usr/bin/docker stop httpd
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment