https://github.com/jon77p/infrastructure
A collection of docker-compose files to setup my current homelab infrastructure, powered by several Raspberry Pi’s and the Cloud!
https://github.com/jon77p/infrastructure
ansible cdktf cloudflare cloudflared docker docker-compose homelab infrastructure infrastructure-as-code k3s kubernetes tailscale traefik
Last synced: about 2 months ago
JSON representation
A collection of docker-compose files to setup my current homelab infrastructure, powered by several Raspberry Pi’s and the Cloud!
- Host: GitHub
- URL: https://github.com/jon77p/infrastructure
- Owner: jon77p
- License: mit
- Created: 2021-04-30T06:29:04.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2026-04-02T01:05:45.000Z (about 2 months ago)
- Last Synced: 2026-04-02T13:35:15.097Z (about 2 months ago)
- Topics: ansible, cdktf, cloudflare, cloudflared, docker, docker-compose, homelab, infrastructure, infrastructure-as-code, k3s, kubernetes, tailscale, traefik
- Language: Jinja
- Homepage: https://thepi.cloud
- Size: 12.8 MB
- Stars: 12
- Watchers: 1
- Forks: 0
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Infrastructure







[](https://github.com/codespaces/new)
## Getting Started: [Minimal Setup]
1. `docker swarm init` on manager node
2. `docker swarm join` with correct join token on all other nodes
3. `docker network create --scope swarm --driver overlay web` on manager node
4. `docker stack deploy -c cloudflared/docker-compose.yml picluster`
5. `docker stack deploy -c traefik/docker-compose.yml picluster`
6. `docker stack deploy -c cloudflare-companion/docker-compose.yml picluster`
## Locally Applying kustomizations
1. Export environment variables to current shell
2. Run `envsubst < <(kubectl kustomize *path-to-kustomization-dir*) | kubectl apply -f -`
## Decrypting SOPS secrets for kubectl
1. `sops --decrypt *path-to-.sops.yaml* | kubectl apply -f -`
## Credits
Portions cloned from [k8s-at-home/template-cluster-k3s](https://github.com/k8s-at-home/template-cluster-k3s)