-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
81 lines (77 loc) Β· 2.92 KB
/
Copy pathdocker-compose.yml
File metadata and controls
81 lines (77 loc) Β· 2.92 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
# βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# AlianHub - Project Management System (self-hosted)
#
# Quick start:
# 1. Copy .env.example to .env and set at least JWT_SECRET
# 2. docker compose up -d
# 3. Open http://localhost:4000
#
# Update to a newer version:
# docker compose pull && docker compose up -d
#
# Build the image from local source instead of pulling the registry image:
# docker compose build
# docker compose up -d
# βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
services:
# ββ AlianHub backend + bundled frontend ββββββββββββββββββββββββββββ
app:
image: ghcr.io/aliansoftwareteam/alianhub:${ALIANHUB_VERSION:-latest}
build:
context: .
dockerfile: Dockerfile
container_name: alianhub
restart: unless-stopped
ports:
- "${APP_PORT:-4000}:4000"
environment:
# Required β connect to the bundled mongo service below
MONGODB_URL: mongodb://mongo:27017/alianhub
# Required β generate a random string for each new install
JWT_SECRET: ${JWT_SECRET:?JWT_SECRET is required β set it in .env}
# Optional β public URL clients use to reach the API
APIURL: ${APIURL:-http://localhost:4000/}
# Optional β "server" (local filesystem) or "wasabi" (S3-compatible)
STORAGE_TYPE: ${STORAGE_TYPE:-server}
# Optional β override port (uncommon)
PORT: 4000
env_file:
# Picks up any additional env vars defined in .env (e.g. SMTP, OAuth)
- path: .env
required: false
volumes:
# Persists file uploads when STORAGE_TYPE=server
- alianhub_storage:/app/common-storage
depends_on:
mongo:
condition: service_healthy
networks:
- alianhub
# ββ MongoDB βββββββββββββββββββββββββββββββββββββββββββββββββββββββ
mongo:
image: mongo:7
container_name: alianhub-mongo
restart: unless-stopped
volumes:
- alianhub_mongo_data:/data/db
# Don't expose Mongo on the host by default β the app talks to it
# over the internal network only. Uncomment to access from host:
# ports:
# - "27017:27017"
healthcheck:
test: ["CMD", "mongosh", "--quiet", "--eval", "db.adminCommand('ping').ok"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
networks:
- alianhub
volumes:
alianhub_mongo_data:
name: alianhub_mongo_data
alianhub_storage:
name: alianhub_storage
networks:
alianhub:
name: alianhub
driver: bridge