mirror of
https://github.com/zws-im/zws.git
synced 2026-04-24 19:03:57 +02:00
40 lines
933 B
YAML
40 lines
933 B
YAML
spec:
|
|
name: zws
|
|
services:
|
|
- name: api
|
|
image:
|
|
registry_type: DOCKER_HUB
|
|
registry: docker.io
|
|
repository: zwsim/zws
|
|
envs:
|
|
- key: API_KEY
|
|
scope: RUN_TIME
|
|
type: SECRET
|
|
- key: DATABASE_URL
|
|
scope: RUN_TIME
|
|
value: ${urls.DATABASE_URL}
|
|
- key: SHORT_LENGTH
|
|
scope: RUN_TIME
|
|
- key: SHORT_CHARS
|
|
scope: RUN_TIME
|
|
- key: SHORT_REWRITES
|
|
scope: RUN_TIME
|
|
- key: HOSTNAME
|
|
scope: RUN_TIME
|
|
- key: SHORTENED_BASE_URL
|
|
scope: RUN_TIME
|
|
- key: SENTRY_DSN
|
|
scope: RUN_TIME
|
|
http_port: 3000
|
|
health_check:
|
|
initial_delay_seconds: 5
|
|
period_seconds: 30
|
|
timeout_seconds: 5
|
|
success_threshold: 1
|
|
failure_threshold: 3
|
|
http_path: /health
|
|
databases:
|
|
- name: urls
|
|
engine: PG
|
|
version: '12'
|