restructure services based on host machine
This commit is contained in:
2
nuc/homarr/.env.example
Normal file
2
nuc/homarr/.env.example
Normal file
@@ -0,0 +1,2 @@
|
||||
# DOMAIN_ROOT is the root domain that this service will register as with Traefik
|
||||
DOMAIN_ROOT=domain.tld
|
40
nuc/homarr/docker-compose.yml
Normal file
40
nuc/homarr/docker-compose.yml
Normal file
@@ -0,0 +1,40 @@
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
homarr:
|
||||
image: ghcr.io/ajnart/homarr:latest
|
||||
container_name: homarr
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- homarr_config:/app/data/configs
|
||||
- homarr_data:/data
|
||||
- homarr_icons:/app/public/homarr_icons
|
||||
|
||||
|
||||
environment:
|
||||
- DOMAIN_ROOT=${DOMAIN_ROOT}
|
||||
|
||||
labels:
|
||||
- "traefik.http.services.homarr.loadbalancer.server.port=7575"
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.homarr.rule=Host(`home.${DOMAIN_ROOT}`)"
|
||||
- 'traefik.http.routers.homarr.middlewares=authelia@docker'
|
||||
|
||||
networks:
|
||||
- web
|
||||
|
||||
networks:
|
||||
web:
|
||||
external: true
|
||||
|
||||
volumes:
|
||||
homarr_config:
|
||||
external: true
|
||||
|
||||
homarr_data:
|
||||
external: true
|
||||
|
||||
homarr_icons:
|
||||
external: true
|
Reference in New Issue
Block a user