Skip to content

Reverse Proxy Setup

  • traefik as reverse proxy and tls termination
  • nginx for serving static content
  • canary-cd for deploying projects and static pages

GitHub forks

clone repo

git clone https://github.com/rehborn/canary-deploy -b dev

create config

cd canary-deploy
cp .env-example .env
echo "CANARY_SALT=$(openssl rand -base64 32)" > .env

.env

CANARY_HOST=
CANARY_SALT=
WATCHTOWER_HTTP_API_TOKEN=
WATCHTOWER_NOTIFICATION_SLACK_HOOK_URL=

start

source .env ; docker compose up -d

folder structure:

├── compose.yml
├── data
│   ├── database.sqlite
│   ├── dynamic
│   │   └── pages.example.yml
│   ├── pages
│   │ └── pages.example.com
│   │     └── index.html
│   └── repositories
│       └── my-project
├── nginx-static.conf
├── ssl
│   └── acme-letsencrypt.json
└── traefik.yml
Was this page helpful?