Skip to content

Instantly share code, notes, and snippets.

@loftwah
Last active February 6, 2023 19:51
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save loftwah/4afb2d71d02cc59953b85c87fad00059 to your computer and use it in GitHub Desktop.
Save loftwah/4afb2d71d02cc59953b85c87fad00059 to your computer and use it in GitHub Desktop.
Theme any application using nothing but Docker-Compose

Theming applications with Docker-Compose

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment