308Httpd - amagerard/Docker GitHub Wiki

Zimaos.

1-Zimaos 2- Portainer 3- Drupal 4- Joomla 5-Wordpress
6-Xwiki 7- Mediawiki 8- Httpd
Docker Casaos

8. httpd.

Zimaos GUI displays applications with icons.
Each icon is linked to a URL from internet.
But what happens if there is no internet ?
The application icons will be replaced by a default Zimaos icon.

My solution will be to install a local httpd server that
will store my application icons.

Zimaos only accepts icons with png extension.

This procedure is based on this example.

Zimaos ip : 192.168.60.9/24
Zimaos version: 1.2.5
Zimaos version: 1.3.1-beta1

8.1 Upload icons.

8.1.1 Download icons on your home.

Download the icons from drupal, joomla, wordpress, xwiki, mediawiki,
nginx and rename them to logo-<app>.png.

wget -c https://www.drupal.org/files/EL_blue_RGB%281%29.png  -O logo-drupal.png  
wget -c docs.joomla.org/images/0/02/Joomla-flat-logo-en.png -O logo-joomla.png  
wget -c https://s.w.org/style/images/about/WordPress-logotype-wmark-white.png -O logo-wordpress.png  
wget -c https://www.xwiki.org/xwiki/bin/download/Main/Logo/XWiki-logo-color.png -O logo-xwiki.png  
wget -c https://upload.wikimedia.org/wikipedia/commons/3/3d/Mediawiki-logo.png  -O logo-mediawiki.png  
wget -c https://www.apache.org/logos/res/httpd/httpd-pb.png -O  logo-httpd.png  

8.1.2 Uploads icons.

Open Zimaos.
http://192.168.60.9.

Click on File icon.
Then in Documents.
Right Click and choose Create New folder.
Name: docker
Not shared - Submit.
Then in docker folder.
Right Click and choose Create New folder.
Name: files.
Not shared - Submit.
Then in files folder.
Right Click and choose Create New folder.
Name: icons.
Not shared - Submit.
Right Click and choose Uploads logo-<app>.png files.

8.2 Install httpd with a yaml script.

Copy this script in notepad, kate, gedit or another text editor
and save with a name that has a yaml extension.

# 2025, January.  
# Check if the folder exist /DATA/Documents/docker/files/icons  before install  httpd.  
# You must upload  all the icons apps  under /DATA/Documents/docker/files/icons before install  httpd.  
#  
## you cannot  delete  /DATA/Documents/docker/files/icons  
#  
# Be careful with the tab, the indentation is 4 characters.  
#  
name: icon-httpd  
services:  
    icon-httpd:  
        cpu_shares: 90  
        command: []  
        container_name: icon-httpd  
        deploy:  
            resources:  
                limits:  
                    memory: 512M  
        environment: []  
        hostname: icon-httpd  
        image: httpd:latest  
        ports:  
            - target: 80  
              published: '9090'  
              protocol: tcp  
        restart: always  
        volumes:  
            - /DATA/Documents/docker/files/icons:/usr/local/apache2/htdocs  
        devices: []  
        cap_add: []  
        network_mode: bridge  
        privileged: false  
  
x-casaos:  
    author: self  
    category: self  
    hostname: 192.168.60.9 # Change IP for Zimaos  
    icon: http://192.168.60.9:9090/logo-httpd.png  # check if existe  
    index: /  
    is_uncontrolled: false  
    port_map: '9090'  
    main: icon-httpd  
    scheme: http  
    store_app_id: icon-httpd  
    title:  
        custom: icon-httpd  

Open Zimaos.
http://192.168.60.9.

Click on the "+" which is located in the middle right of the browser web page.
Install a customized app.
Click on right top who name "import".
Import.
Click on Drag your Docker Compose here or click to upload.
Search your script yaml.
Submit.
OK and OK.
Install.

Open httpd.
http://192.168.60.9:9090.

8.3 Change the icon in the application settings.

You have 2 possibilities.

  • modify the icon url in the yaml script for new install.
  • modify the icon url in the application settings from the Zimaos graphic interface.

The URL of the icon will be http://<ip Zimaos>:9090/logo-<app>.png

Important.
If you change the icon in the application settings from the Zimaos graphical interface,
you will have to redo the attachment of the container and its volume in portainer
.

⚠️ **GitHub.com Fallback** ⚠️