Skip to content

alexsee/umbraco-container

Repository files navigation

Umbraco 13 Docker Image · GitHub license Docker Image CI

This repository provides a simple Umbraco project template with build scripts for docker images. You can run your Umbraco instance as a docker container with easy upgrade capabilities (i.e., just exchange the image).

Additional installed packages

  • uSync Complete Edition

Example docker-compose.yml

version: '3.7'

services:
  umbraco-container:
    container_name: my-umbraco-container
    image: ghcr.io/alexsee/umbraco-container:latest
    restart: always
    entrypoint: ["dotnet", "UmbracoContainer.dll", "--urls", "http://0.0.0.0"]
    ports:
      - "80:80"
    volumes:
      - ./Logs:/output/umbraco/Logs
      - ./uSync:/output/uSync
      - ./Views:/output/Views
      - ./wwwroot/css:/output/wwwroot/css
      - ./wwwroot/fonts:/output/wwwroot/fonts
      - ./wwwroot/media:/output/wwwroot/media
      - ./appsettings.json:/output/appsettings.json
      - ./Data:/output/umbraco/Data

Note: The docker-compose example maps the relevant subfolders of wwwroot to a local folder / docker volume individually. If you include the entire wwwroot directory, this can lead to upgrade issues since the container image itself contains the wwwroot/umbraco directory. Therefore, only include additional folders and files here such as the css, media, or scripts folders separately.