-
Notifications
You must be signed in to change notification settings - Fork 166
/
docker-compose-production.yml
139 lines (133 loc) · 4.33 KB
/
docker-compose-production.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
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
parse-server:
#build: .
image: yongjhih/parse-server
ports:
- "1337:1337"
environment:
PORT: 1337
DATABASE_URI: $DATABASE_URI
APP_ID: $APP_ID
MASTER_KEY: $MASTER_KEY
PARSE_MOUNT: $PARSE_MOUNT # /parse
COLLECTION_PREFIX: $COLLECTION_PREFIX
CLIENT_KEY: $CLIENT_KEY
REST_API_KEY: $REST_API_KEY
DOTNET_KEY: $DOTNET_KEY
JAVASCRIPT_KEY: $JAVASCRIPT_KEY
FILE_KEY: $FILE_KEY
FACEBOOK_APP_IDS: $FACEBOOK_APP_IDS
SERVER_URL: $SERVER_URL
MAX_UPLOAD_SIZE: $MAX_UPLOAD_SIZE # 20mb
GCM_ID: $GCM_ID
GCM_KEY: $GCM_KEY
PRODUCTION_PFX: $PRODUCTION_PFX
PRODUCTION_PASSPHRASE: $PRODUCTION_PASSPHRASE
PRODUCTION_BUNDLE_ID: $PRODUCTION_BUNDLE_ID
PRODUCTION_CERT: $PRODUCTION_CERT # prodCert.pem
PRODUCTION_KEY: $PRODUCTION_KEY # prodKey.pem
DEV_PFX: $DEV_PFX
DEV_PASSPHRASE: $DEV_PASSPHRASE
DEV_BUNDLE_ID: $DEV_BUNDLE_ID
DEV_CERT: $DEV_CERT # devCert.pem
DEV_KEY: $DEV_KEY # devKey.pem
VERIFY_USER_EMAILS: $VERIFY_USER_EMAILS # 0
EMAIL_MODULE: $EMAIL_MODULE # "" or "parse-server-mailgun-adapter-template"
EMAIL_FROM: $EMAIL_FROM
EMAIL_DOMAIN: $EMAIL_DOMAIN
EMAIL_API_KEY: $EMAIL_API_KEY
EMAIL_DISPLAY_NAME: $EMAIL_DISPLAY_NAME
EMAIL_REPLY_TO: $EMAIL_REPLY_TO
EMAIL_VERIFICATION_SUBJECT: $EMAIL_VERIFICATION_SUBJECT
EMAIL_VERIFICATION_BODY: $EMAIL_VERIFICATION_BODY
EMAIL_VERIFICATION_BODY_HTML: $EMAIL_VERIFICATION_BODY_HTML
EMAIL_PASSWORD_RESET_SUBJECT: $EMAIL_PASSWORD_RESET_SUBJECT
EMAIL_PASSWORD_RESET_BODY: $EMAIL_PASSWORD_RESET_BODY
EMAIL_PASSWORD_RESET_BODY_HTML: $EMAIL_PASSWORD_RESET_BODY_HTML
ENABLE_ANON_USERS: $ENABLE_ANON_USERS # 1
ALLOW_CLIENT_CLASS_CREATION: $ALLOW_CLIENT_CLASS_CREATION # 1
PARSE_EXPERIMENTAL_CONFIG_ENABLED: $PARSE_EXPERIMENTAL_CONFIG_ENABLED # 0
TESTING: $TESTING # 0
APP_NAME: $APP_NAME
PUBLIC_SERVER_URL: $PUBLIC_SERVER_URL
TRUST_PROXY: $TRUST_PROXY
S3_ACCESS_KEY: $S3_ACCESS_KEY
S3_SECRET_KEY: $S3_SECRET_KEY
S3_BUCKET: $S3_BUCKET
S3_DIRECT: $S3_DIRECT
GCP_PROJECT_ID: $GCP_PROJECT_ID
GCP_KEYFILE_PATH: $GCP_KEYFILE_PATH
GCS_BUCKET: $GCS_BUCKET
GCS_DIRECT: $GCS_DIRECT
AZURE_ACCOUNT: $AZURE_ACCOUNT
AZURE_CONTAINER: $AZURE_CONTAINER
AZURE_ACCESS_KEY: $AZURE_ACCESS_KEY
AZURE_DIRECT: $AZURE_DIRECT
GRAPHQL_SUPPORT: $GRAPHQL_SUPPORT
GRAPHQL_SCHEMA: $GRAPHQL_SCHEMA
LOG_LEVEL: $LOG_LEVEL
links:
- mongo
volumes_from:
- parse-cloud-code
volumes:
- /parse/cloud
- "./volumes/certs:/certs"
parse-cloud-code:
#build: cloud/.
image: yongjhih/parse-cloud-code
volumes:
- /parse/cloud
command: "ls /parse/cloud"
git:
image: yongjhih/parse-server:git
ports:
- "2022:22"
environment:
PORT: 22
#WORKTREE: $GIT_WORKTREE
#REPO_PATH: $GIT_REPO_PATH
volumes_from:
- parse-server
mongo:
image: mongo:3.0.8 # ref. https://github.com/ParsePlatform/parse-server/issues/1913
ports:
- "27017:27017"
volumes_from:
- mongo-data
# command: "--smallfiles --logpath=/dev/null --setParameter failIndexKeyTooLong=false --rest --auth"
command: "--smallfiles --logpath=/dev/null --setParameter failIndexKeyTooLong=false"
# ref. http://www.diogogmt.com/running-mongodb-with-docker-and-compose/
mongo-data:
image: mongo
volumes:
- /data/db
command: "--break-mongo"
parse-dashboard:
image: yongjhih/parse-dashboard:1.0.18
links:
- parse-server
environment:
APP_ID: $APP_ID
MASTER_KEY: $MASTER_KEY
APP_NAME: $APP_NAME
ALLOW_INSECURE_HTTP: $PARSE_DASHBOARD_ALLOW_INSECURE_HTTP
USER1: $USER1
USER1_PASSWORD: $USER1_PASSWORD
PARSE_DASHBOARD_ALLOW_INSECURE_HTTP: $PARSE_DASHBOARD_ALLOW_INSECURE_HTTP
SERVER_URL: $SERVER_URL
PARSE_DASHBOARD_SERVER_URL: $SERVER_URL
PARSE_DASHBOARD_MASTER_KEY: $MASTER_KEY
PARSE_DASHBOARD_APP_ID: $APP_ID
PARSE_DASHBOARD_APP_NAME: $APP_NAME
PARSE_DASHBOARD_USER_ID: $USER1
PARSE_DASHBOARD_USER_PASSWORD: $USER1_PASSWORD
PARSE_DASHBOARD_CONFIG: $PARSE_DASHBOARD_CONFIG
MOUNT_PATH: $PARSE_DASHBOARD_MOUNT_PATH
TRUST_PROXY: $PARSE_DASHBOARD_TRUST_PROXY
PORT: 4040
ports:
- "4040:4040"
command: parse-dashboard
# volumes:
# - "parse-dashboard-config.json:/src/Parse-Dashboard/parse-dashboard-config.json"
# vim:set et ts=2 sw=2: