refactor: deployment with cloudflare tunnel + nginx proxy manager
This commit is contained in:
+51
-4
@@ -1,4 +1,21 @@
|
||||
services:
|
||||
# minio:
|
||||
# image: minio/minio:latest
|
||||
# container_name: minio
|
||||
# command: server /data --console-address ":9001"
|
||||
# restart: unless-stopped
|
||||
# environment:
|
||||
# MINIO_ROOT_USER: minioadmin
|
||||
# MINIO_ROOT_PASSWORD: LIGTNbUgQr
|
||||
# ports:
|
||||
# - "9000:9000" # API
|
||||
# - "9001:9001" # Consola web
|
||||
# volumes:
|
||||
# - ./data/minio/data:/data
|
||||
# #- ./data/certs:/root/.minio/certs:ro
|
||||
# networks:
|
||||
# - proxy
|
||||
|
||||
jenkins:
|
||||
build:
|
||||
context: ./data/jenkins
|
||||
@@ -7,14 +24,44 @@ services:
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- JAVA_OPTS=-Djenkins.install.runSetupWizard=false
|
||||
ports:
|
||||
- "8080:8080"
|
||||
- "50000:50000"
|
||||
expose:
|
||||
- "8080"
|
||||
volumes:
|
||||
- jenkins_home:/var/jenkins_home
|
||||
- ./data/jenkins/jenkins.yaml:/usr/share/jenkins/ref/jenkins.yaml:ro
|
||||
- ./data/jenkins/deploy:/opt/deploy:ro
|
||||
- ./data/jenkins/pipelines/Jenkinsfile.ralph:/opt/jenkins/Jenkinsfile.ralph:ro
|
||||
- ./data/jenkins/pipelines/Jenkinsfile.lab:/opt/jenkins/Jenkinsfile.lab:ro
|
||||
networks:
|
||||
- proxy
|
||||
|
||||
npm:
|
||||
image: jc21/nginx-proxy-manager:latest
|
||||
container_name: nginx-proxy-manager
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
- "81:81"
|
||||
volumes:
|
||||
- ./data/npm/data:/data
|
||||
- ./data/npm/letsencrypt:/etc/letsencrypt
|
||||
networks:
|
||||
- proxy
|
||||
|
||||
cloudflared:
|
||||
image: cloudflare/cloudflared:latest
|
||||
container_name: cloudflared
|
||||
restart: unless-stopped
|
||||
command: tunnel --no-autoupdate run
|
||||
environment:
|
||||
- TUNNEL_TOKEN=${CLOUDFLARE_TUNNEL_TOKEN}
|
||||
networks:
|
||||
- proxy
|
||||
|
||||
networks:
|
||||
proxy:
|
||||
driver: bridge
|
||||
|
||||
volumes:
|
||||
jenkins_home:
|
||||
jenkins_home:
|
||||
Reference in New Issue
Block a user