diff --git a/README.md b/README.md index f3a9cfd..8bb61a5 100644 --- a/README.md +++ b/README.md @@ -74,7 +74,7 @@ And then, caddy will generate the certificate for you and renew it automatically | Domain name | Type | Description | | --- | --- | --- | -| [bensuperpc.org](https://bensuperpc.org) | Main | Redirect to www.bensuperpc.org | +| [bensuperpc.org](https://bensuperpc.org) | Main | Redirect to [www.bensuperpc.org](https://www.bensuperpc.org) | | [www.bensuperpc.org](https://www.bensuperpc.org) | Main | Homepage | | [wordpress.bensuperpc.org](https://wordpress.bensuperpc.org) | Sub | Wordpress website | | [uptimekuma.bensuperpc.org](https://uptimekuma.bensuperpc.org) | Sub | Uptime Kuma for monitoring | @@ -92,10 +92,11 @@ And then, caddy will generate the certificate for you and renew it automatically | [picoshare.bensuperpc.org](https://picoshare.bensuperpc.org) | Sub | Picoshare for file sharing | | [dufs.bensuperpc.org](https://dufs.bensuperpc.org) | Sub | Dufs for file sharing | | [public.bensuperpc.org](https://public.bensuperpc.org) | Sub | Caddy for file sharing | -| bensuperpc.com | Main | Redirect to www.bensuperpc.org | -| bensuperpc.fr | Main | Redirect to www.bensuperpc.org | -| bensuperpc.net | Main | Redirect to www.bensuperpc.org | -| bensuperpc.ovh | Main | Redirect to www.bensuperpc.org | +| [memos.bensuperpc.org](https://memos.bensuperpc.org) | Sub | Caddy for file sharing | +| bensuperpc.com | Main | Redirect to [www.bensuperpc.org](https://www.bensuperpc.org) | +| bensuperpc.fr | Main | Redirect to [www.bensuperpc.org](https://www.bensuperpc.org) | +| bensuperpc.net | Main | Redirect to [www.bensuperpc.org](https://www.bensuperpc.org) | +| bensuperpc.ovh | Main | Redirect to [www.bensuperpc.org](https://www.bensuperpc.org) | ### Configure the infrastructure @@ -292,6 +293,7 @@ ssh -p 2222 admin@bensuperpc.org - [ProjectSend](https://www.projectsend.org/) - [Picoshare](https://github.com/mtlynch/picoshare) - [Dufs](https://github.com/sigoden/dufs) +- [demos](https://github.com/usememos/memos) - [Fix docker volume](https://pratikpc.medium.com/use-docker-compose-named-volumes-as-non-root-within-your-containers-1911eb30f731) ## License diff --git a/infrastructure/services/caddy/config/bensuperpc.org/Caddyfile b/infrastructure/services/caddy/config/bensuperpc.org/Caddyfile index c05333a..ec70aa5 100644 --- a/infrastructure/services/caddy/config/bensuperpc.org/Caddyfile +++ b/infrastructure/services/caddy/config/bensuperpc.org/Caddyfile @@ -134,6 +134,10 @@ stirlingpdf.bensuperpc.org { reverse_proxy stirlingpdf:8080 } +memos.bensuperpc.org { + reverse_proxy memos:5230 +} + link.bensuperpc.org { # TODO: Use service with database # Friendly links diff --git a/infrastructure/services/memos/docker-compose.memos.yml b/infrastructure/services/memos/docker-compose.memos.yml new file mode 100644 index 0000000..b109b8f --- /dev/null +++ b/infrastructure/services/memos/docker-compose.memos.yml @@ -0,0 +1,22 @@ +services: + # memos + memos: + image: neosmemo/memos:latest + container_name: memos + profiles: + - memos + restart: on-failure:5 + depends_on: + - caddy + env_file: + - ./env/memos.env + volumes: + - memos_config:/var/opt/memos + networks: + - infra-network + security_opt: + - no-new-privileges:true + +volumes: + memos_config: + name: memos_config diff --git a/infrastructure/services/memos/env/memos.env b/infrastructure/services/memos/env/memos.env new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/infrastructure/services/memos/env/memos.env @@ -0,0 +1 @@ +