From 7209eb76052bded7649e1ab77bdef7a97816f44f Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Fri, 27 Jan 2023 13:27:20 -0800 Subject: [PATCH] #79 Init homepage --- homelab/server/config/homepage/.env | 1 + .../server/config/homepage/docker-compose.yml | 27 +++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 homelab/server/config/homepage/.env create mode 100644 homelab/server/config/homepage/docker-compose.yml diff --git a/homelab/server/config/homepage/.env b/homelab/server/config/homepage/.env new file mode 100644 index 00000000..874fbc39 --- /dev/null +++ b/homelab/server/config/homepage/.env @@ -0,0 +1 @@ +DOCKER_DATA=/home/joey/data/homepage \ No newline at end of file diff --git a/homelab/server/config/homepage/docker-compose.yml b/homelab/server/config/homepage/docker-compose.yml new file mode 100644 index 00000000..db7c7de4 --- /dev/null +++ b/homelab/server/config/homepage/docker-compose.yml @@ -0,0 +1,27 @@ +version: '3' +services: + homepage: + image: ghcr.io/benphelps/homepage + container_name: homepage_homepage + logging: + driver: loki + options: + loki-url: http://localhost:3100/loki/api/v1/push + loki-batch-size: "50" + loki-retries: "1" + loki-timeout: "2s" + keep-file: "true" + env_file: + - homepage.env + networks: + - web + volumes: + - $DOCKER_DATA:/app/config + - /var/run/docker.sock:/var/run/docker.sock:ro + labels: + - traefik.http.routers.homepage.rule=Host(`homepage.jafner.net`) + - traefik.http.routers.homepage.tls.certresolver=lets-encrypt + +networks: + web: + external: true \ No newline at end of file