I am pretty lazy and had to work out how I could change some files in relation to themeing a self-hosted application. Instead of adding to the codebase of the application, I decided to use Docker-Compose to mount the changes I make to the path of where they would be in the application already. This allows me to change what I like, and still be able to update and maintain the application the way I would without any changes to the codebase itself.
version: '3.3'
networks:
net:
driver: bridge
services:
authelia:
image: authelia/authelia
container_name: authelia
volumes:
- ./authelia:/config
- ./theme/favicon.ico:/path/to/favicon.ico # you can repeat this pattern for any file
networks:
- net
expose:
- 9091
restart: unless-stopped
healthcheck:
disable: true
environment:
- TZ=Australia/Melbourne
redis:
image: redis:alpine
container_name: redis
volumes:
- ./redis:/data
networks:
- net
expose:
- 6379
restart: unless-stopped
environment:
- TZ=Australia/Melbourne