Skip to content

Instantly share code, notes, and snippets.

@sahal
Created June 26, 2024 03:07
Show Gist options
  • Save sahal/eb5b72fe30070394e036d06f4e9b7382 to your computer and use it in GitHub Desktop.
Save sahal/eb5b72fe30070394e036d06f4e9b7382 to your computer and use it in GitHub Desktop.
Get Wiki JS running locally with podman

Use podman-compose to run wiki.js locally

compose.yaml

The compose printed inline on wiki.js's website has some slight issues that I don't care to overlook.

Here's the one I ended up using:

version: "3"
services:

  db:
    image: docker.io/postgres:15-alpine
    environment:
      POSTGRES_DB: wiki
      POSTGRES_PASSWORD: wikijsrocks
      POSTGRES_USER: wikijs
    logging:
      driver: "none"
    restart: unless-stopped
    volumes:
      - db-data:/var/lib/postgresql/data

  wiki:
    image: ghcr.io/requarks/wiki:2.5.303
    environment:
    depends_on:
      - db
    environment:
      DB_TYPE: postgres
      DB_HOST: db
      DB_PORT: 5432
      DB_USER: wikijs
      DB_PASS: wikijsrocks
      DB_NAME: wiki
    restart: unless-stopped
    ports:
      - "8080:3000"

volumes:
  db-data:

What changed

I only changed:

  • the default listen port, from 80 to 8080, so I don't need to run this as root or add configuration to sysctl.
  • explicitly added docker.io/ to the postgres container image url. This is because I (still) haven't configured /etc/containers/registries.conf

start podman-compose

Once you have that compose.yaml file in a directory, you should be able to run podman compose like so:

$ PODMAN_COMPOSE_PROVIDER=podman-compose podman compose up

That's it!

Enjoy your docker free existence.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment