2023-11-12 19:28:51 +00:00
|
|
|
version: "2.1"
|
|
|
|
services:
|
|
|
|
logseq:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
container_name: logseq
|
2023-11-12 19:56:15 +00:00
|
|
|
security_opt:
|
|
|
|
- seccomp:unconfined #optional
|
2023-11-12 19:28:51 +00:00
|
|
|
environment:
|
|
|
|
# Recommended to set PUID and PGID to avoid permission issues. You can use `id` to get your uid and gid.
|
|
|
|
- PUID=1000
|
|
|
|
- PGID=1000
|
|
|
|
- TZ=Etc/UTC
|
|
|
|
# HTTP authentification username and password
|
|
|
|
# It seems the container user will be "abc" even if custom user is set.
|
|
|
|
- CUSTOM_USER=abc
|
|
|
|
- PASSWORD=password
|
|
|
|
volumes:
|
|
|
|
- ./logseq:/config
|
|
|
|
ports:
|
|
|
|
- 2000:3000
|
|
|
|
- 2001:3001
|
|
|
|
restart: unless-stopped
|