forked from remorses/mongoke
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy-docker-compose.yml
More file actions
34 lines (32 loc) · 890 Bytes
/
deploy-docker-compose.yml
File metadata and controls
34 lines (32 loc) · 890 Bytes
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
version: "3"
x-deploy-data:
envSchema:
required:
- CONFIG
- MONGODB_URL
properties:
CONFIG:
type: string
format: code/yaml
description: The config that describes how to generate the graphql server
default: |
schema: |
type User {
_id: ObjectId
name: String
}
types:
User:
collection: users
MONGODB_URL:
type: string
description: The url to connect the database, it will be kept encrypted
pattern: ^(mongodb:(?:\/{2})?)((\w+?):(\w+?)@|:?@?)(\S+?):(\d+)\/(\S+?)(\?replicaSet=(\S+?))?$$
default: mongodb://yourdatabaseurl/database-name
services:
mongoke:
image: gcr.io/containerful/mongoke
environment:
- PYTHONUNBUFFERED=1
- DB_URL=${MONGODB_URL}
- CONFIG=${CONFIG}