Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 4 days 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 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-30T11:49:13.000Z (14 days ago)
- Last Synced: 2024-11-02T13:42:24.714Z (11 days ago)
- Topics: deployment, docker, docker-compose, letsencrypt, traefik
- Language: HTML
- Homepage: https://github.com/nemanjam/nextjs-prisma-boilerplate
- Size: 3.29 MB
- Stars: 6
- 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.jsonsudo 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 enddocker 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/arm64portainer:
image: 'portainer/portainer-ce'
platform: linux/arm64```
#### Always start with staging Acme server and change on success```yaml
# core/traefik-data/traefik.ymlcertificatesResolvers:
letsencrypt:
acme:
# always start with staging certificate
caServer: "https://acme-staging-v02.api.letsencrypt.org/directory"
# caServer: 'https://acme-v02.api.letsencrypt.org/directory'
```