Skip to content

Commit

Permalink
add tolgee docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
yaochangyu committed Dec 1, 2024
1 parent d699997 commit 39dd3bd
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tolgee/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
TOLGEE_AUTHENTICATION_ENABLED=true
TOLGEE_AUTHENTICATION_INITIAL_PASSWORD=admin
TOLGEE_AUTHENTICATION_INITIAL_USERNAME=admin
TOLGEE_AUTHENTICATION_JWT_SECRET=my_jwt_secret
TOLGEE_MACHINE_TRANSLATION_GOOGLE_API_KEY=my_google_api_key
TOLGEE_SMTP_AUTH=true
TOLGEE_SMTP_FROM=Tolgee <[email protected]>
TOLGEE_SMTP_HOST=email-smtp.regional-region.amazonaws.com
TOLGEE_SMTP_PASSWORD=omg/my/password
TOLGEE_SMTP_PORT=465
TOLGEE_SMTP_SSL_ENABLED=true
TOLGEE_SMTP_USERNAME=[email protected]
26 changes: 26 additions & 0 deletions tolgee/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
tolgee:
authentication:
enabled: true
initial-password: admin
initial-username: admin
# jwt-secret: my_jwt_secret
machine-translation:
# google:
# api-key: my_google_api_key
deepl:
auth-key: my_deepl_api_key
smtp:
auth: true
from: Tolgee <[email protected]>
host: email-smtp.regional-region.amazonaws.com
password: admin
port: 465
ssl-enabled: true
username: [email protected]
postgres-autostart:
enabled: false
spring:
datasource:
url: jdbc:postgresql://db:5432/postgres
username: postgres
password: postgres
27 changes: 27 additions & 0 deletions tolgee/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
version: '3'

services:
app:
image: tolgee/tolgee:v3.83.3
volumes:
- ./data:/data
- ./config.yaml:/config.yaml
ports:
- '8085:8080'
environment:
spring.config.additional-location: file:///config.yaml # <--- this line
deploy:
restart_policy:
condition: on-failure
depends_on:
- db
db:
image: postgres:17
environment:
POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
volumes:
- ./data/postgres:/var/lib/postgresql/data
ports:
- '5432:5432' # <-- If you want to access your postgres from outside of docker network

0 comments on commit 39dd3bd

Please sign in to comment.