added creation of the admin user, the basic homeboard and all basic setup tasks. Todo: Cleanup
43 lines
No EOL
1.9 KiB
Django/Jinja
43 lines
No EOL
1.9 KiB
Django/Jinja
#---------------------------------------------------------------------#
|
|
# Homarr - A simple, yet powerful dashboard for your server. #
|
|
#---------------------------------------------------------------------#
|
|
services:
|
|
{{ homarr_service_name }}:
|
|
container_name: {{ homarr_service_name }}
|
|
image: {{ homarr_image }}
|
|
restart: unless-stopped
|
|
volumes:
|
|
{% if homarr_use_docker %}
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
{% endif %}
|
|
- {{ homarr_docker_volume_dir }}/homarr/appdata:/appdata
|
|
environment:
|
|
TZ: "Europe/Zurich"
|
|
BASE_URL: "{{ homarr_base_url }}"
|
|
NEXTAUTH_URL: "{{ homarr_base_url }}"
|
|
SECRET_ENCRYPTION_KEY: "{{ homarr_secret_encryption_key }}"
|
|
# Auth: Credentials + OIDC
|
|
AUTH_PROVIDERS: "credentials,oidc"
|
|
AUTH_OIDC_ISSUER: "{{ oidc_issuer }}"
|
|
AUTH_OIDC_CLIENT_ID: "{{ oidc_client_id }}"
|
|
AUTH_OIDC_CLIENT_SECRET: "{{ oidc_client_secret }}"
|
|
AUTH_OIDC_CLIENT_NAME: "{{ oidc_client_name | default('Keycloak') }}"
|
|
AUTH_OIDC_SCOPE_OVERWRITE: "{{ oidc_scopes | default('openid email profile groups') }}"
|
|
AUTH_OIDC_GROUPS_ATTRIBUTE: "{{ oidc_groups_attribute | default('groups') }}"
|
|
AUTH_OIDC_AUTO_LOGIN: "{{ oidc_auto_login | default('false') }}"
|
|
networks:
|
|
- {{ homarr_traefik_network }}
|
|
labels:
|
|
- traefik.enable=true
|
|
- traefik.docker.network={{ homarr_traefik_network }}
|
|
- traefik.http.routers.{{ homarr_service_name }}.rule=Host(`{{ homarr_domain }}`)
|
|
{% if homarr_use_ssl %}
|
|
- traefik.http.routers.{{ homarr_service_name }}.entrypoints=websecure
|
|
- traefik.http.routers.{{ homarr_service_name }}.tls=true
|
|
{% else %}
|
|
- traefik.http.routers.{{ homarr_service_name }}.entrypoints=web
|
|
{% endif %}
|
|
- traefik.http.services.{{ homarr_service_name }}.loadbalancer.server.port={{ homarr_port }}
|
|
networks:
|
|
{{ homarr_traefik_network }}:
|
|
external: true |