Skip to content

This repository provides a simple Umbraco project template with build scripts for docker images.

License

Notifications You must be signed in to change notification settings

stivencamara/umbraco-container

 
 

Repository files navigation

Umbraco 12 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'
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.

About

This repository provides a simple Umbraco project template with build scripts for docker images.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 54.3%
  • C# 34.5%
  • Dockerfile 7.8%
  • HTML 3.4%