diff options
author | Yamagishi Kazutoshi <ykzts@desire.sh> | 2022-09-28 06:33:56 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-27 23:33:56 +0200 |
commit | d86dd067ceb1dc05e67417fa1d7f1e84519b2fca (patch) | |
tree | b86422f5ad9375daaf76b1c7f79f0d309802818f /.devcontainer | |
parent | 2635c8dc5c19ea976b9fc787169244d7e8cec90a (diff) |
Fix auto detect language for translate service (#19244)
Diffstat (limited to '.devcontainer')
-rw-r--r-- | .devcontainer/devcontainer.json | 2 | ||||
-rw-r--r-- | .devcontainer/docker-compose.yml | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 9d9e54d4f..47497794f 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -20,7 +20,7 @@ "forwardPorts": [3000, 4000], // Use 'postCreateCommand' to run commands after the container is created. - "postCreateCommand": "bundle install --path vendor/bundle && yarn install && ./bin/rails db:setup", + "postCreateCommand": "bundle install --path vendor/bundle && yarn install && git checkout -- Gemfile.lock && ./bin/rails db:setup", // Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. "remoteUser": "vscode" diff --git a/.devcontainer/docker-compose.yml b/.devcontainer/docker-compose.yml index 538f6cccd..46f42c454 100644 --- a/.devcontainer/docker-compose.yml +++ b/.devcontainer/docker-compose.yml @@ -27,6 +27,7 @@ services: ES_ENABLED: 'true' ES_HOST: es ES_PORT: '9200' + LIBRE_TRANSLATE_ENDPOINT: http://libretranslate:5000 # Overrides default command so things don't shut down after the process ends. command: sleep infinity networks: @@ -72,6 +73,12 @@ services: soft: -1 hard: -1 + libretranslate: + image: libretranslate/libretranslate:v1.2.9 + restart: unless-stopped + networks: + - internal_network + volumes: postgres-data: redis-data: |