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).
- uSync Complete Edition
version: '3.7'
name: "umbraco"
services:
umbraco-container:
container_name: umbraco-12
image: ghcr.io/alexsee/umbraco-container:latest
restart: always
entrypoint: ["dotnet", "UmbracoContainer.dll", "--urls", "http://0.0.0.0"]
ports:
- "8001:80"
volumes:
- umbraco_data:/Logs:/output/umbraco/Logs
- umbraco_data:/uSync:/output/uSync
- umbraco_data:/Views:/output/Views
- umbraco_data:/wwwroot/css:/output/wwwroot/css
- umbraco_data:/wwwroot/fonts:/output/wwwroot/fonts
- umbraco_data:/wwwroot/media:/output/wwwroot/media
- umbraco_data:/appsettings.json:/output/appsettings.json
- umbraco_data:/Data:/output/umbraco/Data
volumes:
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.