wiki icon indicating copy to clipboard operation
wiki copied to clipboard

Changing Favicon (Using Docker)

Open anhuntz opened this issue 6 years ago • 5 comments

We are running Wiki.js through a docker container. How can the favicon be changed? I don't want to risk changing it manually by going into the docker container files, and I can't seem to find an option to change it within the site itself. Help!

Host Info: OS: Ubuntu 18.04, Docker Wiki.js version: Latest

anhuntz avatar May 08 '20 05:05 anhuntz

Just bind mount the /wiki/assets/favicon.ico file and /wiki/assets/favicons/ folder. You don't manually "change" the docker container files, but "override" them.

Smankusors avatar May 08 '20 05:05 Smankusors

It's better make via docker-compose.yaml in your wiki image config remap folder from container to the host and put favico to this folder

volumes:
      - /path/to/your/host/folder/favicons:/wiki/assets/favicons

Regards!

nideKer avatar Aug 22 '20 11:08 nideKer

Just bind mount the /wiki/assets/favicon.ico file and /wiki/assets/favicons/ folder. You don't manually "change" the docker container files, but "override" them.

It's better make via docker-compose.yaml in your wiki image config remap folder from container to the host and put favico to this folder

volumes:
      - /path/to/your/host/folder/favicons:/wiki/assets/favicons

Regards!

I'm also using Docker via DigitalOcean droplet and I'm not super familiar with how to get to a folder in the app, from Linux.

I am able to login to my wiki.js instance via SSH following these instructions. I just don't know what to do next.

Can someone provide the commands I should enter to get to this /wiki/assets/favicons/ folder, and how to substitute the default favicon with our new one?

jord8on avatar Sep 03 '20 23:09 jord8on

I'm also using Docker via DigitalOcean droplet and I'm not super familiar with how to get to a folder in the app, from Linux.

@jord8on You need to know how your container is started - via docker-compose or docker run command - there is different commands to solve it.

nideKer avatar Sep 09 '20 12:09 nideKer

@jord8on This works with the Digital Ocean droplet. Skip the line with -e LETSENCRYPT_DOMAIN if you are not using ssl. Note that this will NOT erase any of your content. The wiki docker us just the front end.

docker stop wiki
docker rm wiki
docker create --name=wiki \
-e LETSENCRYPT_DOMAIN=YOUR_HOST_NAME -e LETSENCRYPT_EMAIL=YOUR_EMAIL_ADDRESS -e SSL_ACTIVE=1 \
-e DB_TYPE=postgres -e DB_HOST=db -e DB_PORT=5432 -e DB_PASS_FILE=/etc/wiki/.db-secret \
-v /etc/wiki/.db-secret:/etc/wiki/.db-secret:ro -e DB_USER=wiki -e DB_NAME=wiki -e UPGRADE_COMPANION=1 \
-v /etc/wiki/custom-assets/favicons:/wiki/assets/favicons \
-v /etc/wiki/custom-assets/favicon.ico:/wiki/assets/favicon.ico \
--restart=unless-stopped -h wiki --network=wikinet -p 80:3000 -p 443:3443 requarks/wiki:2
docker start wiki
docker logs wiki

nethoncho avatar Dec 10 '20 16:12 nethoncho