forked from PSPDFKit/pspdfkit-server-example-nodejs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
68 lines (58 loc) · 1.78 KB
/
docker-compose.yml
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
version: '3'
services:
db:
image: postgres:9.6
environment:
POSTGRES_USER: pspdfkit
POSTGRES_PASSWORD: password
POSTGRES_DB: pspdfkit
POSTGRES_INITDB_ARGS: --data-checksums
PGDATA: /var/lib/postgresql/data/pgdata
volumes:
- pgdata:/var/lib/postgresql/data
pspdfkit:
image: "${PSPDFKIT_IMAGE:-docker.pspdfkit.com/pspdfkit:latest}"
environment:
PGUSER: pspdfkit
PGPASSWORD: password
PGDATABASE: pspdfkit
PGHOST: db
PGPORT: 5432
# Activation key for your PSPDFKit Server installation
ACTIVATION_KEY: ${ACTIVATION_KEY}
# Secret token used for authenticating API requests.
API_AUTH_TOKEN: secret
# Base key used for deriving secret keys for the purposes of authentication.
SECRET_KEY_BASE: secret-key-base
# Public key used for verification of JWTs from web clients. It has to be in the PEM format.
JWT_PUBLIC_KEY: |
-----BEGIN PUBLIC KEY-----
MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBALd41vG5rMzG26hhVxE65kzWC+bYQ94t
OxsSxIQZMOc1GY8ubuqu2iku5/5isaFfG44e+VAe+YIdVeQY7cUkaaUCAwEAAQ==
-----END PUBLIC KEY-----
JWT_ALGORITHM: RS256
# Credentials to access the admin dashboard
DASHBOARD_USERNAME: dashboard
DASHBOARD_PASSWORD: secret
# Asset storage backend that is used by PSPDFKit Server
ASSET_STORAGE_BACKEND: built-in
depends_on:
- db
ports:
- "5000:5000"
example:
build: .
environment:
PSPDFKIT_SERVER_INTERNAL_URL: http://pspdfkit:5000
PSPDFKIT_SERVER_EXTERNAL_URL: http://localhost:5000
API_AUTH_TOKEN: secret
depends_on:
- pspdfkit
ports:
- "3000:3000"
volumes:
- .:/app
- node_modules:/app/node_modules
volumes:
pgdata:
node_modules: