diff options
Diffstat (limited to '.do/deploy.template.yaml')
-rw-r--r-- | .do/deploy.template.yaml | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/.do/deploy.template.yaml b/.do/deploy.template.yaml new file mode 100644 index 0000000..b4bbece --- /dev/null +++ b/.do/deploy.template.yaml | |||
@@ -0,0 +1,47 @@ | |||
1 | spec: | ||
2 | alerts: | ||
3 | - rule: DEPLOYMENT_FAILED | ||
4 | - rule: DOMAIN_FAILED | ||
5 | databases: | ||
6 | - engine: PG | ||
7 | name: ferdi-db | ||
8 | num_nodes: 1 | ||
9 | size: db-s-dev-database | ||
10 | version: "12" | ||
11 | name: ferdi-server | ||
12 | region: lon | ||
13 | services: | ||
14 | - dockerfile_path: Dockerfile | ||
15 | github: | ||
16 | branch: master | ||
17 | deploy_on_push: true | ||
18 | repo: getferdi/server | ||
19 | envs: | ||
20 | - key: DB_HOST | ||
21 | scope: RUN_AND_BUILD_TIME | ||
22 | value: ${ferdi-db.HOSTNAME} | ||
23 | - key: DB_PORT | ||
24 | scope: RUN_AND_BUILD_TIME | ||
25 | value: ${ferdi-db.PORT} | ||
26 | - key: DB_USER | ||
27 | scope: RUN_AND_BUILD_TIME | ||
28 | value: ${ferdi-db.USERNAME} | ||
29 | - key: DB_PASSWORD | ||
30 | scope: RUN_AND_BUILD_TIME | ||
31 | value: ${ferdi-db.PASSWORD} | ||
32 | - key: DB_DATABASE | ||
33 | scope: RUN_AND_BUILD_TIME | ||
34 | value: ${ferdi-db.DATABASE} | ||
35 | - key: DB_CA_CERT | ||
36 | scope: RUN_AND_BUILD_TIME | ||
37 | value: ${ferdi-db.CA_CERT} | ||
38 | - key: DB_CONNECTION | ||
39 | scope: RUN_AND_BUILD_TIME | ||
40 | value: pg | ||
41 | http_port: 8080 | ||
42 | instance_count: 1 | ||
43 | instance_size_slug: basic-xxs | ||
44 | name: ferdi-server | ||
45 | routes: | ||
46 | - path: / | ||
47 | source_dir: / | ||