README.md (2032B)
1 # dockerfiles 2 3 Various Dockerfiles for projects that don't have them. 4 5 ## alps 6 7 The `CMD` value is passed to an `alps` binary. By default this is `-h`, 8 but this will need to be customized for your setup. For example: 9 ```yaml 10 command: ["-addr", ":80", "-login-key", "${ALPS_LOGIN_KEY}", "-theme", "sourcehut", "${ALPS_IMAP}", "${ALPS_SMTP}"] 11 ``` 12 13 ## soju 14 15 The `CMD` value is passed to a `soju` binary. By default this is 16 `-config /soju/config`. This expects a config file mounted at 17 `/soju/config`. Depending on your config file, you will need to mount 18 various other volumes into the container. For example: 19 20 ``` 21 soju config 22 ----------- 23 listen :6697 24 hostname example.com 25 tls /soju/certs/fullchain.pem /soju/certs/privkey.pem 26 db sqlite3 /soju/soju.db 27 log fs /soju/log 28 29 30 docker-compose.yml 31 ------------------ 32 soju: 33 ... 34 volumes: 35 - ./soju/config:/soju/config 36 - ./soju/log:/soju/log 37 - ./soju/soju.db:/soju/soju.db 38 - ./soju/certs:/soju/certs 39 ``` 40 41 ## stagit 42 43 Generates and serves static HTML pages from a directory of git 44 repositories with `stagit` and `nginx`. 45 46 Requirements: 47 - directory mounted at `/git` with your bare repositories as subdirectories 48 - repositories will only be included in the output if they contain the 49 magic file `stagit-export-ok`. 50 - clone url prefix in the `GIT_BASE_URL` environment variable (example: 51 `https://git.example.com`) 52 - files mounted in the nginx folder (`/usr/share/nginx/html`) 53 - `favicon.png` -> favicon image 54 - `logo.png` -> 32x32 logo 55 - `style.css` -> CSS stylesheet 56 57 ## crabmail 58 59 Generates and serves static HTML pages from a maildir using `crabmail`, 60 `mbsync`, and `nginx`. 61 62 Requirements: 63 - `mbsync` config file mounted at `/mail/mbsyncrc` 64 - `crabmail` config file mounted at `/mail/crabmail.conf` 65 66 ## git-daemon 67 68 The `CMD` value is passed to `git daemon`. 69 70 By default this is `--base-path=/git`, which expects a directory mounted 71 at `/git` with repositories as subdirectories. Enables cloning of repos 72 with the magic `git-daemon-export-ok` file. No push access.