308Httpd - amagerard/Docker GitHub Wiki
| 1-Zimaos | 2- Portainer | 3- Drupal | 4- Joomla | 5-Wordpress |
|---|---|---|---|---|
| 6-Xwiki | 7- Mediawiki | 8- Httpd | Homepage | |
| Docker | Casaos |
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.5.3.
Download the icons from drupal, joomla, wordpress, xwiki, mediawiki,
nginx and rename them to logo-<app>.png.
From your computer running Ubuntu or another Linux OS.
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
It's possible the Joomla logo cannot be downloaded using "wget".
You will need to do it manually from the browser.
The interface changes frequently between versions, making it difficult to follow a procedure.
However, it's easy to find out how to create a folder and perform a upload.
Open Zimaos.
https://192.168.60.9.
Click on File icon.
Then in Documents.
Click [+] and choose New folder.
Name: docker
Then in docker folder.
Click [+] and choose New folder.
Name: files.
Then in files folder.
Click [+] and choose New folder.
Name : icons.
Then in icons folder.
Click [î] and Upload, choose Upload files logo-<app>.png files.
Return to the homepage, click to the left top Back to Zima Dashboard.
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.
https://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.
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
Example :
Zimaos ip : 192.168.60.9
Icons : logo-mediawiki.png
Icon URL : http://192.168.60.9:9090/logo-mediawiki.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.