deploy.template.yaml
1 spec: 2 name: journalist 3 services: 4 - name: journalist 5 envs: 6 - key: JOURNALIST_SERVER_BINDIP 7 value: 0.0.0.0 8 - key: DATABASE_URL 9 scope: RUN_TIME 10 value: "${journalistdb.DATABASE_URL}" 11 image: 12 registry_type: "DOCKER_HUB" 13 registry: "mrusme" 14 repository: "journalist" 15 tag: "latest" 16 http_port: 8000 17 health_check: 18 initial_delay_seconds: 10 19 period_seconds: 60 20 timeout_seconds: 30 21 http_path: /health 22 port: 8000 23 instance_count: 1 24 instance_size_slug: basic-xxs 25 routes: 26 - path: /health 27 preserve_path_prefix: true 28 - path: /web 29 preserve_path_prefix: true 30 - path: /api 31 preserve_path_prefix: true 32 cors: 33 allow_origins: 34 - regex: "*" 35 allow_methods: 36 - GET 37 - POST 38 - PUT 39 - DELETE 40 databases: 41 - name: journalistdb 42 engine: PG 43 production: true 44 db_user: journalist 45 db_name: journalist 46