208Httpd - amagerard/Docker GitHub Wiki
1-Casaos | 2- Portainer | 3- Drupal | 4- Joomla | 5-Wordpress |
---|---|---|---|---|
6-Xwiki | 7- Mediawiki | 8- Httpd | ||
Docker | Zimaos |
Casaos 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 Casaos icon.
My solution will be to install a local httpd server that
will store my application icons.
Casaos only accepts icons with png extension.
This procedure is based on this example.
Ubuntu ip : 192.168.60.8/24
Casaos version: v0.4.15
Your username: teacher
Your home directory:/home/teacher
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
Open Casaos.
http://192.168.60.8
.
Click on File icon.
Then in Documents.
Right Click and choose New folder.
Name: docker
Not shared - Submit.
Then in docker
folder.
Right Click and choose New folder.
Name: files
.
Not shared - Submit.
Then in files
folder.
Right Click and choose New folder.
Name: icons
.
Not shared - Submit.
Right Click and choose Uploads logo-<app>.png
files.
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.8 # Change IP for Casaos
icon: http://192.168.60.8: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 Casaos.
http://192.168.60.8
.
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.8: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 Casaos graphic interface.
The URL of the icon will be http://<ip Casaos>
:9090/logo-<app>.png
Important.
If you change the icon in the application settings from the Casaos graphical interface,
you will have to redo the attachment of the container and its volume in portainer.