docker based auto-configurator for Caddy 2 & sequentialread.com docker-compose
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.8 KiB

3 years ago
# sequentialread-caddy-config
This repository contains two things,
1. The **`docker-compose.yml`** file which holds all the services I run on my personal website.
1 year ago
* _[Server & Website Updates](https://sequentialread.com/website-updates/)_
* _[Creating a Simple but Effective Outbound "Firewall" using Vanilla Docker-Compose](https://sequentialread.com/creating-a-simple-but-effective-firewall-using-vanilla-docker-compose/)_
* _[Docker API Security Gateway Proof Of Concept](https://sequentialread.com/docker-api-security-gateway/)_
2. An application that talks to the docker socket to get info about containers and then generates a Caddy config, which it posts to Caddy 2 HTTP server.
1 year ago
* This is similar to https://traefik.io/ or https://github.com/nginx-proxy/nginx-proxy
* Yes I realize https://github.com/lucaslorentz/caddy-docker-proxy already does this :P
3 years ago
I am making my own instead for a couple reasons:
1 year ago
1. I don't like the template-based solutions because they are harder to debug. One typically cannot put breakpoints or print statements inside a large complicated template file.
2. I had already written code that generates Caddy configs for some of my other projects. This is the code that eventually became [greenhouse-daemon](https://git.sequentialread.com/sqr/greenhouse-daemon/src/commit/c563be03d35ee5d56d040ae7a3a1ca455bb79d92/config_service.go).
3 years ago
Example docker labels to configure a container to be served publically:
```
sequentialread-80-public-port: 443
sequentialread-80-public-protocol: https
sequentialread-80-public-hostnames: "example.com,www.example.com"
sequentialread-80-container-protocol: http
```
# how to generate favicon for ghost
```
sudo apt install icoutils
icotool -c -o test.ico sequentialread_favicon.png logo48.png logo70.png logo128.png
```