https://github.com/nemanjam/traefik-proxy
Production deployment for nextjs-prisma-boilerplate app.
https://github.com/nemanjam/traefik-proxy
deployment docker docker-compose letsencrypt traefik
Last synced: 6 months ago
JSON representation
Production deployment for nextjs-prisma-boilerplate app.
- Host: GitHub
- URL: https://github.com/nemanjam/traefik-proxy
- Owner: nemanjam
- License: mit
- Created: 2022-01-06T17:39:35.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2025-05-02T13:47:25.000Z (7 months ago)
- Last Synced: 2025-05-12T21:13:58.134Z (6 months ago)
- Topics: deployment, docker, docker-compose, letsencrypt, traefik
- Language: HTML
- Homepage: https://github.com/nemanjam/nextjs-prisma-boilerplate
- Size: 3.3 MB
- Stars: 7
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README-local.md
- License: LICENSE
Awesome Lists containing this project
README
1. clone
2. set public key and token in `rathole.client.toml`
3. create `.env` file and fill in vars
```bash
cp .env.example .env
```
4. acme.json create and chmod
```bash
touch ~/homelab/traefik-proxy/core/traefik-data/acme.json
sudo chmod 600 ~/homelab/traefik-proxy/core/traefik-data/acme.json
```
5. create proxy network
```bash
docker network create proxy
```
6. run containers
```bash
# up must be at end
docker compose -f docker-compose.local.yml up -d
```
6. uncomment staging certificate, must clear contents of old acme.json
```bash
truncate -s 0 acme.json
```
## For OrangePi, the only difference
```yaml
# docker-compose.local.yml
# doesn't exist image for arm, build it
rathole:
# image: rapiz1/rathole:v0.5.0
build: https://github.com/rapiz1/rathole.git#main
platform: linux/arm64
# set platform, not necessary
traefik:
image: 'traefik:v2.9.8'
platform: linux/arm64
portainer:
image: 'portainer/portainer-ce'
platform: linux/arm64
```
#### Always start with staging Acme server and change on success
```yaml
# core/traefik-data/traefik.yml
certificatesResolvers:
letsencrypt:
acme:
# always start with staging certificate
caServer: "https://acme-staging-v02.api.letsencrypt.org/directory"
# caServer: 'https://acme-v02.api.letsencrypt.org/directory'
```