-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
55 lines (54 loc) · 2.52 KB
/
docker-compose.yaml
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
services:
web:
image: "ghcr.io/cjmalloy/jasper:${JASPER_SERVER_VERSION:-latest}"
pull_policy: "${JASPER_SERVER_PULL:-missing}"
restart: unless-stopped
ports:
- "${JASPER_SERVER_PORT:-8081}:8081"
environment:
SPRING_PROFILES_ACTIVE: "${JASPER_SERVER_PROFILES:-prod,jwt,storage,feed-burst,push-burst,pull-burst}"
SPRING_DATASOURCE_URL: jdbc:postgresql://db:5432/jasper
SPRING_DATASOURCE_USERNAME: jasper
SPRING_DATASOURCE_PASSWORD: "${JASPER_DATABASE_PASSWORD:-jasper}"
JASPER_SECURITY_AUTHENTICATION_JWT_CLIENT_ID: ""
JASPER_SECURITY_AUTHENTICATION_JWT_BASE64_SECRET: "${JASPER_SERVER_KEY}"
JASPER_SECURITY_CLIENTS_DEFAULT_AUTHENTICATION_JWT_CLIENT_ID: ""
JASPER_SECURITY_CLIENTS_DEFAULT_AUTHENTICATION_JWT_BASE64_SECRET: "${JASPER_SERVER_KEY}"
JASPER_OVERRIDE_SECURITY_MODE: "jwt"
JASPER_OVERRIDE_SECURITY_CLIENT_ID: ""
JASPER_OVERRIDE_SECURITY_BASE64_SECRET: "${JASPER_SERVER_KEY}"
JASPER_OVERRIDE_SECURITY_VERIFIED_EMAIL_CLAIM: ""
JASPER_CORS_ALLOWED_ORIGINS: "http://localhost:${JASPER_CLIENT_PORT:-8082}"
JASPER_CORS_ALLOWED_METHODS: "*"
JASPER_CORS_ALLOWED_HEADERS: "Authorization,Content-Type,Link,X-Total-Count,X-XSRF-TOKEN"
JASPER_CORS_EXPOSED_HEADERS: "Authorization,Content-Type,Link,X-Total-Count,X-XSRF-TOKEN"
JASPER_CORS_ALLOW_CREDENTIALS: true
JASPER_CORS_MAX_AGE: 1800
volumes:
- "${JASPER_STORAGE_DIR:-/var/lib/jasper}:/var/lib/jasper"
depends_on:
- db
db:
image: "postgres:${JASPER_DATABASE_VERSION:-16}"
pull_policy: "${JASPER_DATABASE_PULL:-missing}"
restart: unless-stopped
environment:
POSTGRES_USER: jasper
POSTGRES_PASSWORD: "${JASPER_DATABASE_PASSWORD:-jasper}"
POSTGRES_DB: jasper
volumes:
- "${JASPER_DATA_DIR:?Must Set Data Dir}:/var/lib/postgresql/data"
client:
image: "ghcr.io/cjmalloy/jasper-ui:${JASPER_CLIENT_VERSION:-latest}"
pull_policy: "${JASPER_CLIENT_PULL:-missing}"
restart: unless-stopped
ports:
- "${JASPER_CLIENT_PORT:-8082}:80"
environment:
JASPER_API: "http://localhost:${JASPER_SERVER_PORT:-8081}"
JASPER_TITLE: "${JASPER_CLIENT_TITLE}"
JASPER_VERSION: "${JASPER_CLIENT_VERSION:-latest}"
JASPER_TOKEN: "${JASPER_CLIENT_TOKEN}"
JASPER_PREFETCH: true
CSP_DEFAULT_SRC: "http://localhost:${JASPER_SERVER_PORT:-8081} ws://localhost:${JASPER_SERVER_PORT:-8081}"
CSP_CONNECT_SRC: "http://localhost:${JASPER_SERVER_PORT:-8081} ws://localhost:${JASPER_SERVER_PORT:-8081}"