1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00
unleash.unleash/.do/deploy.template.yaml
Gastón Fournier a53d50148b
fix: DigitalOcean template (#4287)
## About the changes
Instead of building from source (we require Node 18 but [DigitalOcean
buildpack currently does not support
it](https://www.digitalocean.com/community/questions/app-platform-node-build-pack-can-t-use-node-version-18)),
we're going to use our Docker image from DockerHub:
https://hub.docker.com/r/unleashorg/unleash-server

Additionally, I realized that our Dockerfile only works in our CI (or
performing a pre-build step which consists of building the frontend).
With this PR I've also made a change to build the frontend if needed.
That way our CI will continue to be optimal while anyone trying to build
it from source will be able to do it by just running `docker build .`

Closes #4261
2023-07-20 12:13:44 +00:00

19 lines
419 B
YAML

spec:
name: unleash
services:
- name: unleash-server
image:
registry_type: DOCKER_HUB
registry: unleashorg
repository: unleash-server
tag: latest
envs:
- key: DATABASE_URL
scope: RUN_TIME
value: ${unleash-db.DATABASE_URL}
- key: UNLEASH_URL
scope: RUN_TIME
value: ${APP_URL}
databases:
- name: unleash-db