Hide

YetaWF Documentation

Display
Print

YetaWF On Docker

Before creating a Docker image, YetaWF must be installed on Linux as shown in Installing YetaWF for .NET on Linux and be successfully initialized and running.

The downloaded repository contains a Docker file YetaWFDist5.Dockerfile that can be used to build a Docker image.

The following is a docker-compose file that can be used to run a YetaWF image. The volumes shown must be modified to match the paths used on your system.

version: "2.1"

services:
  web:
    image: your-YetaWF-image:latest
    restart: always
    expose:
      - "80"
      - "443"
    volumes:
      - "...path.../YetaWFDist5/Data:/app/Data"
      - "...path.../YetaWFDist5/wwwroot/AddonsCustom:/app/wwwroot/AddonsCustom"
      - "...path.../YetaWFDist5/wwwroot/Maintenance:/app/wwwroot/Maintenance"
      - "...path.../YetaWFDist5/Sites:/app/Sites"
      # - "...path.../YetaWFDist5/LocalizationCustom:/app/LocalizationCustom"
      # - "...path.../YetaWFDist5/VaultPrivate:/app/VaultPrivate"
      # - "...path.../YetaWFDist5/wwwroot/Vault:/app/wwwroot/Vault"
    environment:
        - TZ=America/New_York
    networks:
      - docker-network

networks:
  docker-network:
    driver: bridge