Add Tolgee service to compose file and service templates

This commit is contained in:
Andras Bacsai 2024-04-17 12:48:11 +02:00
parent 3656adf059
commit ca5f52c48c
2 changed files with 56 additions and 0 deletions

View File

@ -0,0 +1,42 @@
# documentation: https://tolgee.io/
# slogan: Tolgee is a localization management platform for developers and translators.
# tags: localization,translation,management,platform
# logo: svgs/tolgee.svg
# port: 8080
services:
tolgee:
image: tolgee/tolgee
environment:
- SERVICE_FQDN_TOLGEE_8080
- TOLGEE_AUTHENTICATION_ENABLED=true
- TOLGEE_AUTHENTICATION_INITIAL_PASSWORD=$SERVICE_PASSWORD_TOLGEE
- TOLGEE_AUTHENTICATION_INITIAL_USERNAME=admin
- TOLGEE_AUTHENTICATION_JWT_SECRET=$SERVICE_PASSWORD_JWT
- TOLGEE_POSTGRES_AUTOSTART_ENABLED=false
- SPRING_DATASOURCE_URL=jdbc:postgresql://postgresql:5432/${POSTGRES_DB:-tolgee}
- SPRING_DATASOURCE_USERNAME=${SERVICE_USER_POSTGRESQL}
- SPRING_DATASOURCE_PASSWORD=${SERVICE_PASSWORD_POSTGRESQL}
volumes:
- tolgee-data:/data
healthcheck:
test: ["CMD", "wget", "-q", "--spider", "http://localhost:8080"]
interval: 5s
timeout: 20s
retries: 10
depends_on:
postgresql:
condition: service_healthy
postgresql:
image: postgres:16-alpine
volumes:
- tolgee-postgresql-data:/var/lib/postgresql/data
environment:
- POSTGRES_USER=${SERVICE_USER_POSTGRESQL}
- POSTGRES_PASSWORD=${SERVICE_PASSWORD_POSTGRESQL}
- POSTGRES_DB=${POSTGRESQL_DATABASE:-tolgee}
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
interval: 5s
timeout: 20s
retries: 10

View File

@ -867,6 +867,20 @@
"minversion": "0.0.0",
"port": "8384"
},
"tolgee": {
"documentation": "https:\/\/tolgee.io\/",
"slogan": "Tolgee is a localization management platform for developers and translators.",
"compose": "c2VydmljZXM6CiAgdG9sZ2VlOgogICA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gICAgIGNvbmRpdGlvbjogc2VydmljZV9oZWFsdGh5CiAgcG9zdGdyZXNxbDoKICAgIGltYWdlOiAncG9zdGdyZXM6MTYtYWxwaW5lJwogICAgdm9sdW1lczoKICAgICAgLSAndG9sZ2VlLXBvc3RncmVzcWwtZGF0YTovdmFyL2xpYi9wb3N0Z3Jlc3FsL2RhdGEnCiAgICBlbnZpcm9ubWVudDoKICAgICAgLSAnUE9TVEdSRVNfVVNFUj0ke1NFUlZJQ0VfVVNFUl9QT1NUR1JFU1FMfScKICAgICAgLSAnUE9TVEdSRVNfUEFTU1dPUkQ9JHtTRVJWSUNFX1BBU1NXT1JEX1BPU1RHUkVTUUx9JwogICAgICAtICdQT1NUR1JFU19EQj0ke1BPU1RHUkVTUUxfREFUQUJBU0U6LXRvbGdlZX0nCiAgICBoZWFsdGhjaGVjazoKICAgICAgdGVzdDoKICAgICAgICAtIENNRC1TSEVMTAogICAgICAgIC0gJ3BnX2lzcmVhZHkgLVUgJCR7UE9TVEdSRVNfVVNFUn0gLWQgJCR7UE9TVEdSRVNfREJ9JwogICAgICBpbnRlcnZhbDogNXMKICAgICAgdGltZW91dDogMjBzCiAgICAgIHJldHJpZXM6IDEwCg==",
"tags": [
"localization",
"translation",
"management",
"platform"
],
"logo": "svgs\/tolgee.svg",
"minversion": "0.0.0",
"port": "8080"
},
"trigger-with-external-database": {
"documentation": "https:\/\/trigger.dev",
"slogan": "The open source Background Jobs framework for TypeScript",