-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.selfhost.minimal.yml
More file actions
72 lines (68 loc) · 2.17 KB
/
docker-compose.selfhost.minimal.yml
File metadata and controls
72 lines (68 loc) · 2.17 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
name: mdplane-selfhost-minimal
services:
server:
build:
context: .
dockerfile: apps/server/Dockerfile
restart: unless-stopped
ports:
- '${API_PORT:-3001}:3001'
environment:
NODE_ENV: ${NODE_ENV:-production}
PORT: 3001
HOST: 0.0.0.0
DATABASE_URL: /data/mdplane.sqlite
BASE_URL: ${BASE_URL:-http://localhost:3001}
APP_URL: ${APP_URL:-http://localhost:3000}
WS_URL: ${WS_URL:-ws://localhost:3001/ws}
BETTER_AUTH_URL: ${BETTER_AUTH_URL:-http://localhost:3001}
BETTER_AUTH_SECRET: ${BETTER_AUTH_SECRET:?BETTER_AUTH_SECRET is required}
MP_JWT_SECRET: ${MP_JWT_SECRET:?MP_JWT_SECRET is required}
MDPLANE_GOVERNED_MODE: ${MDPLANE_GOVERNED_MODE:-false}
DISABLE_BACKGROUND_JOBS: ${DISABLE_BACKGROUND_JOBS:-false}
GITHUB_CLIENT_ID: ${GITHUB_CLIENT_ID:-}
GITHUB_CLIENT_SECRET: ${GITHUB_CLIENT_SECRET:-}
GOOGLE_CLIENT_ID: ${GOOGLE_CLIENT_ID:-}
GOOGLE_CLIENT_SECRET: ${GOOGLE_CLIENT_SECRET:-}
ADMIN_SECRET: ${ADMIN_SECRET:-}
volumes:
- mdplane-data:/data
networks:
- mdplane-network
healthcheck:
test: ['CMD', 'curl', '-f', 'http://127.0.0.1:3001/health']
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
web:
build:
context: .
dockerfile: apps/web/Dockerfile
restart: unless-stopped
ports:
- '${APP_PORT:-3000}:3000'
environment:
NODE_ENV: production
API_INTERNAL_URL: ${API_INTERNAL_URL:-http://server:3001}
NEXT_PUBLIC_API_URL: ${NEXT_PUBLIC_API_URL:-http://localhost:3001}
NEXT_PUBLIC_APP_URL: ${NEXT_PUBLIC_APP_URL:-http://localhost:3000}
NEXT_PUBLIC_WS_URL: ${NEXT_PUBLIC_WS_URL:-ws://localhost:3001/ws}
NEXT_PUBLIC_GOVERNED_MODE: ${NEXT_PUBLIC_GOVERNED_MODE:-false}
networks:
- mdplane-network
depends_on:
server:
condition: service_healthy
healthcheck:
test: ['CMD', 'wget', '--no-verbose', '--tries=1', '--spider', 'http://127.0.0.1:3000/']
interval: 30s
timeout: 10s
retries: 3
start_period: 15s
networks:
mdplane-network:
driver: bridge
volumes:
mdplane-data:
driver: local