Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 1.35 KB

production.md

File metadata and controls

32 lines (24 loc) · 1.35 KB

Deploy in Production (Linux only!)

  • Follow the installation instruction for Docker and Docker Compose (Linux):

  • Create the following directories (required to map volumes properly):

    mkdir -p /var/opentosca/container/data
    mkdir -p /var/opentosca/container/repository
    mkdir -p /var/opentosca/winery/repository
    mkdir -p /var/opentosca/portainer
  • Open the .env file and set the PUBLIC_HOSTNAME variable to your host's public IP address or hostname

  • Start the environment

    docker-compose -f docker-compose.yml -f docker-compose.prod.yml up -d
  • This setup also starts the lightweight management UI Portainer on port 9000

  • For special scenarios, you may have to specify an override file:

    docker-compose.exe -f docker-compose.yml -f docker-compose.prod.yml -f docker-compose.override.yml up -d

⚠️ The production config docker-compose.prod.yml maps the local docker socket into the dind container. This exposes the local docker deamon to the OpenTOSCA containers!

:Warning: Make sure git lfs is setup correctly if you experience problems with the Winery. See troubleshooting entry about git lfs for more information.