Files
pages/docker-compose.yml
Anya Tokugawa c1175d389f Implement Knowledge City platform, organizer and DAV integration
Capture accumulated application, UI, CLI, regression tests and design documentation changes, including task project mapping and default CalDAV list naming.

Keep deployment data, backups, local credentials and build artifacts out of Git. Move the Compose enrollment token to an ignored local environment file.
2026-09-27 14:44:43 +09:00

120 lines
2.9 KiB
YAML

services:
app:
container_name: pageswiki
build: .
image: pageswiki-app
networks:
default:
aliases:
- extpages.anya.jp
volumes:
- ./data:/data
ports:
- "3000:3000"
environment:
PAGESWIKI_DATA_DIR: /data
KROKI_URL: http://kroki:8000
PAGESWIKI_ADAPTER_GATEWAY_ORIGIN: http://adaptor-gateway:3000
extra_hosts:
- "id.anya.jp:172.18.0.10"
healthcheck:
test: ["CMD", "wget", "-q", "-O", "-", "http://localhost:3000/health"]
interval: 2s
timeout: 1s
retries: 15
restart: unless-stopped
app2:
container_name: pageswiki-ext
image: pageswiki-app
command: >
/pageswiki --no-default-campus --add-external-campus-http extpages.anya.jp:3000 ${PAGESWIKI_EXTERNAL_CAMPUS_TOKEN:?Set PAGESWIKI_EXTERNAL_CAMPUS_TOKEN in .env}
volumes:
- ./data2:/data
ports:
- "3001:3000"
environment:
PAGESWIKI_INSTANCE_FQDN: ext-node-pages.anya.jp
PAGESWIKI_DATA_DIR: /data
KROKI_URL: http://kroki:8000
extra_hosts:
- "id.anya.jp:172.18.0.10"
depends_on:
app:
condition: service_healthy
restart: unless-stopped
adaptor-gateway:
container_name: pageswiki-adaptor-gateway
build:
context: .
dockerfile: Dockerfile.adapter-gateway
environment:
PAGESWIKI_ORIGIN: http://app:3000
CODE_SERVER_ORIGIN: http://code-server:8080
EXCALIDRAW_VIEWER_ORIGIN: http://excalidraw-viewer:8080
volumes:
- adapter-workspaces:/workspaces
expose:
- "3000"
depends_on:
app:
condition: service_healthy
code-server:
condition: service_started
excalidraw-viewer:
condition: service_healthy
restart: unless-stopped
code-server:
container_name: pageswiki-code-server
image: codercom/code-server:latest
command:
- --bind-addr
- 0.0.0.0:8080
- --auth
- none
- --disable-telemetry
- --disable-proxy
- --disable-getting-started-override
- /workspaces
expose:
- "8080"
volumes:
- adapter-workspaces:/workspaces
restart: unless-stopped
excalidraw-viewer:
container_name: pageswiki-excalidraw-viewer
build:
context: .
dockerfile: Dockerfile.excalidraw-viewer
expose:
- "8080"
healthcheck:
test: ["CMD", "wget", "-q", "-O", "-", "http://127.0.0.1:8080/health"]
interval: 5s
timeout: 2s
retries: 12
restart: unless-stopped
kroki:
image: yuzutech/kroki
environment:
KROKI_MERMAID_HOST: kroki-mermaid
KROKI_MERMAID_PORT: 8002
restart: unless-stopped
depends_on:
- kroki-mermaid
kroki-mermaid:
image: yuzutech/kroki-mermaid
restart: unless-stopped
expose:
- "8002"
volumes:
adapter-workspaces:
networks:
default:
ipam:
config:
- subnet: 172.23.0.0/27