-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
65 lines (62 loc) · 1.89 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
65 lines (62 loc) · 1.89 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
services:
postgres:
image: postgres:15
environment:
POSTGRES_DB: refmd
POSTGRES_USER: refmd
POSTGRES_PASSWORD: refmd
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U refmd"]
interval: 5s
timeout: 5s
retries: 5
api:
image: ghcr.io/refmdio/refmd/api:latest
environment:
API_PORT: 8888
DATABASE_URL: postgresql://refmd:refmd@postgres:5432/refmd
FRONTEND_URL: http://localhost:3000
BACKEND_URL: http://localhost:8888
JWT_SECRET: change-me-please
ENCRYPTION_KEY: change-me-please
UPLOADS_DIR: /data/uploads
UPLOAD_MAX_BYTES: 26214400
PLUGINS_DIR: /app/plugins
PLUGIN_ASSET_SIGN_KEY: change-me-please
# GOOGLE_OAUTH_CLIENT_ID: your-google-client-id.apps.googleusercontent.com
# GITHUB_OAUTH_CLIENT_ID: your-github-client-id
# GITHUB_OAUTH_CLIENT_SECRET: your-github-client-secret
# GITHUB_OAUTH_REDIRECT_URI: http://localhost:3000/auth/signin
# OIDC_OAUTH_ISSUER: https://id.example.com/realms/refmd
# OIDC_OAUTH_CLIENT_ID: your-oidc-client-id
# OIDC_OAUTH_CLIENT_SECRET: your-oidc-client-secret
# OIDC_OAUTH_REDIRECT_URI: http://localhost:3000/auth/signin
# OIDC_OAUTH_SCOPES: openid,profile,email
# OIDC_OAUTH_DISPLAY_NAME: Example SSO
ports:
- "8888:8888"
depends_on:
postgres:
condition: service_healthy
volumes:
- refmd_data:/data
- refmd_plugins:/app/plugins
app:
image: ghcr.io/refmdio/refmd/app:latest
environment:
SSR_API_BASE_URL: http://api:8888
VITE_API_BASE_URL: http://localhost:8888
VITE_PUBLIC_BASE_URL: http://localhost:3000
ports:
- "3000:80"
depends_on:
api:
condition: service_started
volumes:
postgres_data:
refmd_data:
refmd_plugins: