-
-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
31 lines (28 loc) · 984 Bytes
/
docker-compose.yml
File metadata and controls
31 lines (28 loc) · 984 Bytes
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
# Gitcord - Docker Compose for mentor-friendly deployment.
# Usage: copy .env and config, then run: docker compose up -d
# Data (SQLite, reports, identity links) persists in named volume gitcord_data.
# init_data ensures /data is owned by appuser (image runs as non-root); runs once then exits.
services:
init_data:
build: .
image: gitcord:latest
user: "0"
volumes:
- gitcord_data:/data
command: ["sh", "-c", "chown -R appuser:appuser /data"]
bot:
build: .
image: gitcord:latest
env_file: .env
depends_on:
init_data:
condition: service_completed_successfully
volumes:
# Mount config so you can edit YAML without rebuilding (use data_dir: /data in config).
- ./config:/app/config:ro
# Persist SQLite state, reports, and audit logs between restarts.
- gitcord_data:/data
command: ["ghdcbot", "--config", "/app/config/aussie.yaml", "bot"]
restart: unless-stopped
volumes:
gitcord_data: