diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..0468595 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,29 @@ +services: + db: + image: postgres:15-alpine + container_name: wikijs-db + restart: unless-stopped + environment: + POSTGRES_DB: wiki + POSTGRES_USER: wikijs + POSTGRES_PASSWORD: wikijs # Change this for production! + volumes: + - pgdata:/var/lib/postgresql/data + + wiki: + image: ghcr.io/requarks/wiki:2 + container_name: wikijs + depends_on: + - db + restart: unless-stopped + environment: + DB_TYPE: postgres + DB_HOST: db + DB_PORT: 5432 + DB_USER: wikijs + DB_PASS: wikijs # Must match POSTGRES_PASSWORD + DB_NAME: wiki + ports: + - "8080:3000" +volumes: + pgdata: \ No newline at end of file