-
-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy pathdocker-compose.yml
56 lines (55 loc) · 2.62 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
version: '3.4'
services:
parse:
image: netreconlab/parse-hipaa:netrecon
environment:
PARSE_SERVER_APPLICATION_ID: E036A0C5-6829-4B40-9B3B-3E05F6DF32B2
PARSE_SERVER_MASTER_KEY: E2466756-93CF-4C05-BA44-FF5D9C34E99F
PARSE_SERVER_OBJECT_ID_SIZE: 32
PARSE_SERVER_DATABASE_URI: postgres://${PG_PARSE_USER}:${PG_PARSE_PASSWORD}@db:5432/${PG_PARSE_DB}
PORT: ${PORT}
PARSE_SERVER_MOUNT_PATH: /parse
PARSE_SERVER_URL: http://parse:${PORT}/parse
PARSE_PUBLIC_SERVER_URL: http://localhost:${PORT}/parse
PARSE_SERVER_CLOUD: /parse-server/cloud/main.js
PARSE_SERVER_MOUNT_GRAPHQL: 1
PARSE_USING_PARSECAREKIT: 1 #If you are not using ParseCareKit, set this to 0
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} #Needed for wait-for-postgres.sh
ports:
- ${PORT}:${PORT}
volumes:
- ./scripts/wait-for-postgres.sh:/parse-server/wait-for-postgres.sh
- ./parse/index.js:/parse-server/index.js
- ./parse/cloud:/parse-server/cloud
restart: always
command: ["./wait-for-postgres.sh", "db", "node", "index.js"]
depends_on:
- db
dashboard:
image: parseplatform/parse-dashboard:latest
environment:
PARSE_DASHBOARD_TRUST_PROXY: 1
PARSE_DASHBOARD_COOKIE_SESSION_SECRET: AB8849B6-D725-4A75-AA73-AB7103F0363F #This should be constant across all deployments on your system
MOUNT_PATH: /dashboard #This needs to be exactly what you plan it to be behind the proxy, i.e. If you want to access cs.uky.edu/dashboard it should be "/dashboard"
command: parse-dashboard --dev
volumes:
- ./dashboard/parse-dashboard-config.json:/src/Parse-Dashboard/parse-dashboard-config.json
ports:
- 127.0.0.1:4040:4040
depends_on:
- parse
db:
image: netreconlab/hipaa-postgres:12-3.0
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
PG_PARSE_USER: ${PG_PARSE_USER}
PG_PARSE_PASSWORD: ${PG_PARSE_PASSWORD}
PG_PARSE_DB: ${PG_PARSE_DB}
restart: always
ports:
- 5432:5432
#Uncomment volumes below to persist postgres data. Make sure to change directory to store data locally
# volumes:
# - /My/Encrypted/Drive/data:/var/lib/postgresql/data
# - /My/Encrypted/Drive/data:/var/lib/postgresql/data #Mount your own drive
# - /My/Encrypted/Drive/archivedir:/var/lib/postgresql/archivedir #Mount your own drive