init config

This commit is contained in:
2026-02-09 01:04:26 +01:00
commit 193855b2b5
5 changed files with 91 additions and 0 deletions

9
.gitignore vendored Normal file
View File

@@ -0,0 +1,9 @@
# ignore ALL .log files
*.env
*.log
# ignore submodules
# ignore ALL files in ANY directory named temp
data/
config/

0
README.md Normal file
View File

View File

@@ -0,0 +1,17 @@
# While this file is not meant to be deployed directly it is used for "inheritance" of your sevices.
# Below you can see a service that I've called "default" which is used as a base definition for other services.
# It defines only the most common properties that I need. It does not have the 'image' for example as each extending service will have its own 'image'.
# Of course you can have more templates here or even 'extend' them from each other.
services:
default:
restart: unless-stopped
security_opt:
- no-new-privileges=true
environment:
TZ: ${TZ}
PUID: ${PUID}
PGID: ${PGID}
logging:
options:
max-size: "5m"
max-file: "3"

26
docker-compose.yml Normal file
View File

@@ -0,0 +1,26 @@
# center docker-compose file
# see https://github.com/labmonkey/docker-compose-project-example for more info
# Here I will include all "child" docker compose files that I need.
# The paths can relative to this file or absolue. I've used INCLUDE_PATH variable to make it more cofigurable.
# Whenever I need to remove some service then I can comment out the lines here.
include:
- path:
- ${INCLUDE_PATH}/adguard/adguard.yml
env_file: ${INCLUDE_PATH}/.env
networks:
private:
driver: bridge
name: private
ipam:
config:
- subnet: 10.5.0.0/16
gateway: 10.5.0.1
public:
driver: bridge
name: public
ipam:
config:
- subnet: 10.6.0.0/16
gateway: 10.6.0.1

View File

@@ -0,0 +1,39 @@
services:
adguardhome:
extends:
file: ${TEMPLATES_PATH}
service: default
image: adguard/adguardhome:latest
container_name: adguardhome
network_mode: host
#ports:
# DNS
# - 53:53/tcp
# - 53:53/udp
# # DHCP
# - 67:67/tcp
# - 1068:68/tcp
# - 1068:68/udp
# DNS-over-TLS
# - 853:853/udp
# DNS-over-HTTP
# - 80:80/tcp
# - 443:443/tcp
# - 443:443/udp
# Admin panel
# - 3000:3000/tcp
volumes:
- ${INCLUDE_PATH}/adguard/data:/opt/adguardhome/work
- ${INCLUDE_PATH}/adguard/config:/opt/adguardhome/conf
# labels:
# watchtower
# - "com.centurylinklabs.watchtower.enable=true"
#
# Traefik
# - "traefik.enable=true"
# - "traefik.http.routers.adguard.entrypoints=https"
# - "traefik.http.routers.adguard.rule=Host(`adguard.crescentec.xyz`)"
# - "traefik.http.services.adguard.loadbalancer.server.port=3000"
# - "traefik.http.routers.adguard.tls=true"
# - "traefik.http.routers.adguard.tls.certresolver=myresolver"
# - "traefik.http.routers.adguard.middlewares=authelia"