Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge pull request #951 from plexguide/protection #952

Merged
merged 1 commit into from
Sep 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions mods/scripts/traefik_deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ services:
image: traefik:latest
container_name: traefik
hostname: traefik
network_mode: host
command:
- "--api.insecure=true"
- "--providers.docker=true"
Expand All @@ -76,14 +77,9 @@ EOF

# Finalize Docker Compose file
cat <<EOF >> $DOCKER_COMPOSE_FILE
ports:
- "80:80"
- "443:443"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /pg/traefik/letsencrypt:/letsencrypt
networks:
- plexguide
labels:
- "traefik.enable=true"
- "traefik.http.routers.traefik.rule=Host(\`traefik.${domain_name}\`)"
Expand All @@ -94,7 +90,7 @@ EOF
restart: unless-stopped

networks:
plexguide:
host:
external: true
EOF

Expand All @@ -105,4 +101,4 @@ EOF
}

# Deploy Traefik with Cloudflare
deploy_traefik
deploy_traefik