-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.selfhost.full.yml
More file actions
117 lines (111 loc) · 3.35 KB
/
docker-compose.selfhost.full.yml
File metadata and controls
117 lines (111 loc) · 3.35 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
name: mdplane-selfhost-full
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
docs:
build:
context: .
dockerfile: apps/docs/Dockerfile
restart: unless-stopped
ports:
- '${DOCS_PORT:-3002}:3002'
environment:
NODE_ENV: production
NEXT_PUBLIC_DOCS_URL: ${NEXT_PUBLIC_DOCS_URL:-http://localhost:3002}
networks:
- mdplane-network
depends_on:
web:
condition: service_healthy
healthcheck:
test: ['CMD', 'wget', '--no-verbose', '--tries=1', '--spider', 'http://127.0.0.1:3002/']
interval: 30s
timeout: 10s
retries: 3
start_period: 20s
landing:
build:
context: .
dockerfile: apps/landing/Dockerfile
restart: unless-stopped
ports:
- '${LANDING_PORT:-3004}:3000'
environment:
NODE_ENV: production
NEXT_PUBLIC_SITE_URL: ${NEXT_PUBLIC_SITE_URL:-http://localhost:3004}
NEXT_PUBLIC_API_URL: ${LANDING_NEXT_PUBLIC_API_URL:-http://localhost:3001}
networks:
- mdplane-network
depends_on:
web:
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: 20s
networks:
mdplane-network:
driver: bridge
volumes:
mdplane-data:
driver: local