selfhosting/README.md

23 lines
827 B
Markdown
Raw Normal View History

2020-06-27 14:54:16 +02:00
# Hosting
2020-07-07 07:50:53 +02:00
2021-11-11 10:33:30 +01:00
My server installation recipes (Inspired from https://github.com/tomMoulard/make-my-server)
2020-07-07 07:50:53 +02:00
2021-11-11 10:33:30 +01:00
Bash function to override docker-compose command and manage multiple docker-compose.yml files (non executable YAML files are ignored).
2020-07-07 07:50:53 +02:00
```bash
2021-11-10 07:38:35 +01:00
export DOCKER_COMPOSE_BIN='/usr/bin/docker compose'
2020-07-07 07:50:53 +02:00
docker-compose ()
{
2021-11-10 07:38:35 +01:00
$DOCKER_COMPOSE_BIN $(find -name 'docker-compose*.yml' -type f -perm -u+x -printf '%p\t%d\n' 2>/dev/null | sort -n -k2 | cut -f 1 | awk '{print "-f "$0}') $@
2020-07-07 07:50:53 +02:00
}
```
2021-12-18 22:00:06 +01:00
2022-03-05 14:59:24 +01:00
Compose files refer to [service profiles](https://docs.docker.com/compose/profiles/):
- disabled: set for services I don't use
- testing: enable SSL configuration relying on https://traefik.me for local testing
- production: enable domain configuration on deployment server
2021-12-24 09:36:38 +01:00
### Network diagram:
2021-12-18 22:00:06 +01:00
2021-12-26 17:20:44 +01:00
![network diag](__doc__/nwdiag.png)