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
| #!/bin/bash | |
| PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin | |
| ############################################ | |
| # ntfy settings | |
| ############################################ | |
| NTFY_USER="<NTFYUser>" | |
| NTFY_PASS="<NTFYPassword>" | |
| NTFY_TOPIC="<NTFYTopic>" |
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
| #!/bin/bash | |
| set -e | |
| # Absolute path to the directory containing your Dockerfile | |
| BUILD_CONTEXT="/<PathToCaddyDockerFile>/caddy" | |
| # Custom image base name | |
| CUSTOM_IMAGE_BASE="caddy-cloudflare" |
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
| services: | |
| portainer: | |
| image: portainer/portainer-ee:latest | |
| container_name: portainer | |
| ports: | |
| - "8000:8000" | |
| - "9000:9000" | |
| - "9443:9443" | |
| volumes: | |
| - portainer_data:/data |
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
| { | |
| email <EmailAddressHere> | |
| acme_ca https://acme-v02.api.letsencrypt.org/directory | |
| acme_dns cloudflare { | |
| api_token {$CLOUDFLARE_API_TOKEN} | |
| } | |
| order tls first | |
| } | |
| # ----------------------------- |
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
| services: | |
| caddy: | |
| image: caddy-cloudflare | |
| container_name: caddy | |
| environment: | |
| - CLOUDFLARE_API_TOKEN=<MyAPIToken> | |
| dns: | |
| - 1.1.1.1 | |
| - 1.0.0.1 | |
| ports: |
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
| version: "3.7" | |
| services: | |
| agent: | |
| image: portainer/agent:latest | |
| container_name: portainer_agent | |
| network_mode: host | |
| ports: | |
| - "9001:9001" | |
| restart: unless-stopped |
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
| sudo ip route add 172.19.19.0/24 dev br-$(sudo docker network inspect cloudflared_default |jq -r '.[0].Id[0:12]') table lan_routable | |
| sudo ip route add 172.19.19.0/24 dev br-$(sudo docker network inspect cloudflared_default |jq -r '.[0].Id[0:12]') table wan_routable |
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
| version: "3.7" | |
| services: | |
| cloudflared: | |
| image: cloudflare/cloudflared:latest | |
| container_name: cloudflare-tunnel | |
| dns: | |
| - 1.1.1.1 | |
| restart: unless-stopped | |
| command: tunnel --no-autoupdate run |
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
| # Redirect portainer to HTTPS | |
| http://portainer.oholics.net { | |
| redir https://portainer.oholics.net{uri} | |
| } | |
| # HTTPS reverse proxy for Portainer | |
| https://portainer.oholics.net { | |
| tls /certs/origin.pem /certs/origin.key | |
| reverse_proxy http://host.docker.internal:9000 { |
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
| services: | |
| db_dev: | |
| image: mysql:8.0 | |
| container_name: mysql_dev | |
| restart: unless-stopped | |
| environment: | |
| MYSQL_ROOT_PASSWORD: <YourRootPassword> | |
| MYSQL_DATABASE: <WordpressDataBaseName> | |
| MYSQL_USER: <WordPressUser> |
NewerOlder