aboutsummaryrefslogtreecommitdiffstats
path: root/.do/deploy.template.yaml
blob: b4bbece5c971649eb6a3c35d8090c48bc912f2cd (plain) (blame)
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
spec:
  alerts:
  - rule: DEPLOYMENT_FAILED
  - rule: DOMAIN_FAILED
  databases:
  - engine: PG
    name: ferdi-db
    num_nodes: 1
    size: db-s-dev-database
    version: "12"
  name: ferdi-server
  region: lon
  services:
  - dockerfile_path: Dockerfile
    github:
      branch: master
      deploy_on_push: true
      repo: getferdi/server
    envs:
    - key: DB_HOST
      scope: RUN_AND_BUILD_TIME
      value: ${ferdi-db.HOSTNAME}
    - key: DB_PORT
      scope: RUN_AND_BUILD_TIME
      value: ${ferdi-db.PORT}
    - key: DB_USER
      scope: RUN_AND_BUILD_TIME
      value: ${ferdi-db.USERNAME}
    - key: DB_PASSWORD
      scope: RUN_AND_BUILD_TIME
      value: ${ferdi-db.PASSWORD}
    - key: DB_DATABASE
      scope: RUN_AND_BUILD_TIME
      value: ${ferdi-db.DATABASE}
    - key: DB_CA_CERT
      scope: RUN_AND_BUILD_TIME
      value: ${ferdi-db.CA_CERT}
    - key: DB_CONNECTION
      scope: RUN_AND_BUILD_TIME
      value: pg
    http_port: 8080
    instance_count: 1
    instance_size_slug: basic-xxs
    name: ferdi-server
    routes:
    - path: /
    source_dir: /