Install Mixcore CMS with Azure and Docker Compose



  • In this post, I will show you how to setup/install/config Mixcore CMS with Azure and Docker Compose in 5 mins : )

    Step 1: Log in to Azure portal

    Step 2: Click to "App Services" to create an instant

    ad44142c-4219-4cd9-afce-174dfc2a3e51-image.png

    Step 3: Click to "Add" button to start to create an instant process

    7b02887e-5eae-4563-b384-26ab83d66f07-image.png

    Step 4: Fill in the information for your instant

    Notes:

    • Please make sure you try to install on free instant at the 1st time to make use to the installation process and reduce the Azure fee
    • Publish field should choosing "Docker Container"
    • OS should be Linux as Windows doesn't have free instant yet
    • SKU and Size, select the free instant
      92fe528b-396f-4611-b312-e504bccde4b6-image.png

    Step 5: Click to the "Next: Docker >" button to update Docker configuration (this step you can skip by click on "Review & Create" button, we can config the docker information later

    Step 6: Access to your Azure instant that you just created

    Notes:

    • Select "Docker Compose (Preview)" tab
    • Image source: Select "Docker Hub" option
    • Repository Access: Select "Public"
    • Configuration: Copy the following to the input area
    version: "3"
    services:
        web:
            image: "mixcore/mix.core:latest"
            ports:
                - "5000:80"
                - "5001:443"
            depends_on:
                - db
        db:
            image: "mcr.microsoft.com/mssql/server"
            environment:
                SA_PASSWORD: "P@ssw0rd"
                ACCEPT_EULA: "Y"
            ports:
                - "1433:1433"
            restart: always
        redis:
            image: redis
    
        mysql:
            image: mysql:5.7
            volumes:
              - db_data:/var/lib/mysql
            restart: always
            environment:
              MYSQL_ROOT_PASSWORD: P@ssw0rd
              MYSQL_DATABASE: mixcore
              MYSQL_USER: mixcore
              MYSQL_PASSWORD: P@ssw0rd
            ports:
            - 3306:3306
    
    volumes:
        db_data: {}
    
    • Continue deployment: Select On option

    7bb03637-3c62-407a-825d-bfcbc9d6d875-image.png

    Step 7: Click to Save button then wait for 2~4 mins for Azure to do everything for us. You can click on Refresh button to see the progress

    Step 8: Let turn on the SSL

    4ce73fe0-3d5a-40a6-9557-9c6a83a0b268-image.png

    Step 9: Access your demo site

    ae41dc09-0e27-46cb-86b2-16e6a48cd39c-image.png

    Step 10: Have fun with your first Mixcore CMS screen : )

    Notes:

    • Please refer to the Docker Network information here: https://docs.docker.com/compose/networking/
    • They have mentioned as below:

      Within the web container, your connection string to db would look like postgres://db:5432, and from the host machine, the connection string would look like postgres://{DOCKER_IP}:8001.

    8e0c1824-59f5-4e2a-a14a-190c5dcf08d5-image.png

    Cheers!