Official Docker image (#46)

* Initial Dockerfile

* Docker added to Readme

* Added Docker to Travis
This commit is contained in:
David
2021-09-05 16:44:05 +02:00
committed by GitHub
parent 1adbe08056
commit 4df0d40dcf
4 changed files with 92 additions and 1 deletions

View File

@@ -36,6 +36,12 @@ The easiest way is to use their creators' own platform, [Vercel](https://vercel.
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/git/external?repository-url=https%3A%2F%2Fgithub.com%2FTheDavidDelta%2Flingva-translate%2Ftree%2Fmain&env=NEXT_PUBLIC_SITE_DOMAIN&envDescription=Your%20domain)
There's also an [official Docker image](https://hub.docker.com/repository/docker/thedaviddelta/lingva-translate) available for easing the deployment using Compose, Kubernetes or similar technologies. Remember to also include the environment variable (simplified to `site_domain`) when running the container.
```bash
docker run -p 3000:3000 -e site_domain=lingva.ml thedaviddelta/lingva-translate:latest
```
## Instances
@@ -48,7 +54,6 @@ These are the currently known *Lingva* instances. Feel free to make a Pull Reque
| [translate.tixte.gifts](https://translate.tixte.gifts) | [Vercel](https://vercel.com/) | [Let's Encrypt](https://www.ssllabs.com/ssltest/analyze.html?d=translate.tixte.gifts) |
## Public APIs
Nearly all the *Lingva* instances should supply a pair of public developer APIs: a RESTful one and a GraphQL one.