-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnerdctl-compose.yml
More file actions
96 lines (90 loc) · 2.54 KB
/
Copy pathnerdctl-compose.yml
File metadata and controls
96 lines (90 loc) · 2.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# SPDX-License-Identifier: MPL-2.0
# Formatrix Docs - nerdctl compose configuration
# Copyright (C) 2025 Jonathan D.A. Jewell
#
# Usage:
# nerdctl compose up -d # Start all services
# nerdctl compose up formatrix # Start just the editor
# nerdctl compose logs -f # View logs
# nerdctl compose down # Stop all services
services:
formatrix:
build:
context: ..
dockerfile: container/Dockerfile.wolfi
image: ghcr.io/hyperpolymath/formatrix-docs:latest
container_name: formatrix-docs
environment:
- DISPLAY=${DISPLAY:-:0}
- WAYLAND_DISPLAY=${WAYLAND_DISPLAY:-}
- XDG_RUNTIME_DIR=/tmp
- FORMATRIX_DB_URL=http://arangodb:8529
- FORMATRIX_DB_NAME=formatrix
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix:ro
- ${XDG_RUNTIME_DIR:-/run/user/1000}:${XDG_RUNTIME_DIR:-/run/user/1000}:ro
- formatrix-data:/home/formatrix/.local/share/formatrix-docs
- ${HOME}/Documents:/home/formatrix/Documents:rw
depends_on:
- arangodb
networks:
- formatrix-net
restart: unless-stopped
formatrix-tui:
build:
context: ..
dockerfile: container/Dockerfile.wolfi
image: ghcr.io/hyperpolymath/formatrix-docs:latest
container_name: formatrix-tui
entrypoint: ["/usr/local/bin/formatrix-tui"]
environment:
- TERM=${TERM:-xterm-256color}
- FORMATRIX_DB_URL=http://arangodb:8529
- FORMATRIX_DB_NAME=formatrix
volumes:
- formatrix-data:/home/formatrix/.local/share/formatrix-docs
- ${HOME}/Documents:/home/formatrix/Documents:rw
depends_on:
- arangodb
networks:
- formatrix-net
stdin_open: true
tty: true
profiles:
- tui
arangodb:
image: arangodb/arangodb:3.12
container_name: formatrix-arangodb
environment:
- ARANGO_ROOT_PASSWORD=${ARANGO_ROOT_PASSWORD:-formatrix}
- ARANGO_NO_AUTH=${ARANGO_NO_AUTH:-0}
volumes:
- arangodb-data:/var/lib/arangodb3
- arangodb-apps:/var/lib/arangodb3-apps
ports:
- "8529:8529"
networks:
- formatrix-net
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8529/_api/version"]
interval: 30s
timeout: 10s
retries: 5
restart: unless-stopped
vosk:
image: alphacep/kaldi-vosk-server:latest
container_name: formatrix-vosk
ports:
- "2700:2700"
networks:
- formatrix-net
profiles:
- speech
restart: unless-stopped
networks:
formatrix-net:
driver: bridge
volumes:
formatrix-data:
arangodb-data:
arangodb-apps: