mirror of
https://github.com/DoTheEvo/selfhosted-apps-docker
synced 2024-11-15 00:15:09 +00:00
.. | ||
assets/tools | ||
readme.md |
Homer in docker
guide by example
purpose
Homepage.
files and directory structure
/home
└── ~
└── docker
└── homer
├── 🗁 assets
├── 🗋 .config.yml
├── 🗋 .env
└── 🗋 docker-compose.yml
docker-compose
docker-compose.yml
version: "2"
services:
homer:
image: b4bz/homer:latest
container_name: homer
hostname: homer
volumes:
- .config.yml:/www/config.yml
- ./assets/:/www/assets
restart: unless-stopped
expose:
- "8080"
networks:
default:
external:
name: $DEFAULT_NETWORK
.env
# GENERAL
MY_DOMAIN=blabla.org
DEFAULT_NETWORK=caddy_net
reverse proxy
caddy v2 is used, details here
Caddyfile
{
# acme_ca https://acme-staging-v02.api.letsencrypt.org/directory
}
netdata.{$MY_DOMAIN} {
reverse_proxy {
to netdata:80
}
}
update
-
image update using docker compose
docker-compose pull
docker-compose up -d
docker image prune