Created
April 26, 2024 17:12
-
-
Save thedoc31/02b32e54eb7c29239909fbfbfda8cf04 to your computer and use it in GitHub Desktop.
Using official httpd apache container with systemd for Rundeck
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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