bashmkdir jenkins_home
chown -R 1000:1000 ./jenkins_home
yamlversion: "3"
services:
caddy:
container_name: caddy
image: caddy:alpine
restart: unless-stopped
ports:
- "80:80"
- "80:80/udp"
- "443:443"
- "443:443/udp"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
jenkins:
container_name: jenkins
image: jenkins/jenkins:lts-jdk11
restart: unless-stopped
volumes:
# chown -R 1000:1000 ./jenkins_home
- ./jenkins_home:/var/jenkins_home
Caddyfilejenkins.uing.vip { log { output stdout format console level ERROR } reverse_proxy jenkins:8080 }
本文作者:菜鸟
本文链接:
版权声明:本博客所有文章除特别声明外,均采用 署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0) 许可协议。转载请注明出处!