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:
I only changed:
- the default listen port, from
80
to8080
, 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
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
Enjoy your docker free existence.