Repository navigation
Install icon on air gap network #8266
|
Hi. Is it possible to install icon pack from iconify in air gap installation of wiki.js 3? I have download the icon from iconify Website, copy them in the icon folder but i don't find it on the application. Thank's |
Replies: 2 comments 1 reply
|
That's not how it works. You need to run an Iconify API server which holds the icons: Then configure your Wiki.js server to point to that iconify API instead (in config.yml) |
|
Hello, After several tests using Docker, I was able to get Iconify working in an air-gapped environment. Here is my sample Docker Compose file: services:
db:
image: postgres:18
environment:
POSTGRES_DB: wiki
POSTGRES_PASSWORD: ###
POSTGRES_USER: wikijs
restart: unless-stopped
volumes:
- db-data:/var/lib/postgresql
iconify:
image: iconify/api:3.2.0
restart: unless-stopped
environment:
ICONIFY_SOURCE: none
# ports:
# - "8081:3000"
volumes:
- /wiki/icons:/data/iconify-api/icons
wiki:
image: ghcr.io/requarks/wiki:3.3.1
depends_on:
- db
- iconify
environment:
DB_HOST: db
DB_USER: wikijs
DB_PASS: ###
DB_NAME: wiki
ICON_API_URL: http://iconify:3000
restart: unless-stopped
ports:
- "80:3000"
volumes:
- /wiki/config.yml:/wiki/config.yml
volumes:
db-data:
The volume ICONIFY_SOURCE must be set to In my config.yml file, I just added port: 3000
bindIP: 0.0.0.0
db:
host: '$(DB_HOST)'
port: $(DB_PORT:5432)
user: '$(DB_USER)'
pass: '$(DB_PASS)'
db: $(DB_NAME)
schema: $(DB_SCHEMA:wiki)
ssl: $(DB_SSL)
logLevel: $(LOG_LEVEL:info)
logFormat: $(LOG_FORMAT:default)
dataPath: ./data
scheduler:
workers: auto
icons:
apiUrl: '$(ICON_API_URL)'@NGPixel, This example could be added to the Wikijs 3 icon documentation ? |
That's not how it works.
You need to run an Iconify API server which holds the icons:
https://iconify.design/docs/api/hosting.html
Then configure your Wiki.js server to point to that iconify API instead (in config.yml)