services:
homarr:
container_name: homarr
image: ghcr.io/homarr-labs/homarr:latest
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock # Optional, only if you want docker integration
- ./homarr/appdata:/appdata
ports:
- '7575'
environment:
SECRET_ENCRYPTION_KEY: this_is_a_secret!
AUTH_PROVIDER: ldap
AUTH_LDAP_URI: ldap://ip_dc:389
AUTH_LDAP_BASE: dc=domain,DC=local
AUTH_LDAP_BIND_DN: cn=ROuser,cn=Users,dc=domain,dc=local
AUTH_LDAP_BIND_PASSWORD: mypassword
AUTH_LDAP_USERNAME_ATTRIBUTE: sAMAccountName
AUTH_LDAP_USER_MAIL_ATTRIBUTE: mail
AUTH_LDAP_SEARCH_SCOPE: sub
AUTH_LDAP_GROUP_CLASS: group
AUTH_LDAP_GROUP_MEMBER_ATTRIBUTE: member
AUTH_LDAP_GROUP_MEMBER_USER_ATTRIBUTE: dn
AUTH_LDAP_OWNER_GROUP: Homarr_owners
AUTH_LDAP_ADMIN_GROUP: Homarr_admins
# AUTH_LDAP_USERNAME_FILTER_EXTRA_ARG: (sAMAccountType=805306368)
DISABLE_ANALYTICS: true
TZ: Europe/Paris
labels:
- "traefik.enable=true"
- "traefik.http.routers.homarr.rule=Host(`portal.mydomain.com`)"
- "traefik.http.routers.homarr.entrypoints=websecure"
- "traefik.http.routers.homarr.tls=true"
- "traefik.http.services.homarr.loadbalancer.server.port=7575"
networks:
- traefik_network
networks:
traefik_network:
# driver: bridge
external: true
services:
homarr:
container_name: homarr
image: ghcr.io/homarr-labs/homarr:latest
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock # Optional, only if you want docker integration
- ./homarr/appdata:/appdata
ports:
- '7575'
environment:
SECRET_ENCRYPTION_KEY: this_is_a_secret!
AUTH_PROVIDER: ldap
AUTH_LDAP_URI: ldap://ip_dc:389
AUTH_LDAP_BASE: dc=domain,DC=local
AUTH_LDAP_BIND_DN: cn=ROuser,cn=Users,dc=domain,dc=local
AUTH_LDAP_BIND_PASSWORD: mypassword
AUTH_LDAP_USERNAME_ATTRIBUTE: sAMAccountName
AUTH_LDAP_USER_MAIL_ATTRIBUTE: mail
AUTH_LDAP_SEARCH_SCOPE: sub
AUTH_LDAP_GROUP_CLASS: group
AUTH_LDAP_GROUP_MEMBER_ATTRIBUTE: member
AUTH_LDAP_GROUP_MEMBER_USER_ATTRIBUTE: dn
AUTH_LDAP_OWNER_GROUP: Homarr_owners
AUTH_LDAP_ADMIN_GROUP: Homarr_admins
# AUTH_LDAP_USERNAME_FILTER_EXTRA_ARG: (sAMAccountType=805306368)
DISABLE_ANALYTICS: true
TZ: Europe/Paris
labels:
- "traefik.enable=true"
- "traefik.http.routers.homarr.rule=Host(`portal.mydomain.com`)"
- "traefik.http.routers.homarr.entrypoints=websecure"
- "traefik.http.routers.homarr.tls=true"
- "traefik.http.services.homarr.loadbalancer.server.port=7575"
networks:
- traefik_network
networks:
traefik_network:
# driver: bridge
external: true