Install VPS / Portainer / Traefik / Swarm

To be completed by the original poster:

CMS Version

4.6

Installation Method

VPS / Portainer / Traefik

Operating System

UBUNTU 22.04

Issue

version: "3.8"

services:
  xibo-cms:
    image: xibosignage/xibo-cms:4.0.12
    networks:
      - xibo3-net
      - traefik_public
    environment:
      - MYSQL_HOST=xibo3-db
      - MYSQL_USER=cms
      - MYSQL_PASSWORD=1234
      - MYSQL_DATABASE=cms
      - XMR_HOST=xibo3-xmr
      - CMS_USE_MEMCACHED=true
      - MEMCACHED_HOST=xibo3-memcached
      - MEMCACHED_PORT=11211
      - CMS_QUICK_CHART_URL=http://xibo3-quickchart:3400
      - XTR_ENABLED=false
    volumes:
      - xibo_cms:/var/www/cms/custom
      - ./shared/backup:/var/www/backup:Z
      - ./shared/cms/web/theme/custom:/var/www/cms/web/theme/custom:Z
      - ./shared/cms/library:/var/www/cms/library:Z
      - ./shared/cms/web/userscripts:/var/www/cms/web/userscripts:Z
      - ./shared/cms/ca-certs:/var/www/cms/ca-certs:Z
    labels:
      - traefik.enable=true
      - traefik.docker.network=traefik_public
      - traefik.http.routers.xibo3-http.rule=Host(`xibo.miweb.com`)
      - traefik.http.routers.xibo3-http.entrypoints=http
      - traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https
      - traefik.http.routers.xibo3-http.middlewares=redirect-to-https
      - traefik.http.routers.xibo3-https.rule=Host(`xibo.miweb.com`)
      - traefik.http.routers.xibo3-https.entrypoints=https
      - traefik.http.routers.xibo3-https.tls=true
      - traefik.http.routers.xibo3-https.tls.certresolver=le
      - traefik.http.services.xibo3.loadbalancer.server.port=80
    deploy:
      resources:
        limits:
          memory: 1G

  xibo3-db:
    image: mysql:8.1
    volumes:
      - xibo_db:/var/lib/mysql
    environment:
      - MYSQL_DATABASE=cms
      - MYSQL_USER=cms
      - MYSQL_PASSWORD=1234
      - MYSQL_RANDOM_ROOT_PASSWORD=yes
    networks:
      - xibo3-net
    deploy:
      resources:
        limits:
          memory: 1G

  xibo3-xmr:
    image: xibosignage/xibo-xmr:0.9
    networks:
      - xibo3-net
      - traefik_public
    environment:
      - XMR_HOST=xmr
    deploy:
      resources:
        limits:
          memory: 256M
      labels:
        - traefik.enable=true
        - traefik.docker.network=traefik_public
        - traefik.constraint-label=pst-traefik
        - traefik.tcp.routers.xibo3-xmr.rule=HostSNI(`xibo-xmr.miweb.com`)
        - traefik.tcp.routers.xibo3-xmr.entrypoints=tcp
        - traefik.tcp.services.xibo3-xmr.loadbalancer.server.port=9505

  xibo3-quickchart:
    image: ianw/quickchart
    networks:
      - xibo3-net

  xibo3-memcached:
    image: memcached:alpine
    networks:
      - xibo3-net
    deploy:
      resources:
        limits:
          memory: 128M

networks:
  xibo3-net:
    driver: overlay
  traefik_public:
    external: true

volumes:
  xibo_cms:
    driver: local
  xibo_db:
    driver: local

I attach my stack so you can help me correct what is wrong, I can’t set up CMS

It’s wrong?

I achieved!
But I have another problem with mine.

Did you manage to solve it?

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.