Skip to content

Commit

Permalink
Added tolgee to dev compose stack
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardogsilva committed Jun 21, 2024
1 parent 81029b1 commit 73a9bcc
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions docker/compose.dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,20 @@ x-common-volumes: &common-volumes
source: $HOME/data/geobeyond/arpav-ppcv/netcdf-uncertainty-example
target: /home/appuser/data/additional

x-postgres-db-healthcheck: &postgres-db-healthcheck
interval: 10s
timeout: 3s
start_period: 1m
retries: 10
test: |
export PGPASSWORD=$${POSTGRES_PASSWORD:-}
args="--host 127.0.0.1 --username $${POSTGRES_USER} --dbname $${POSTGRES_DB} --quiet --no-align --tuples-only"
response=$$(echo 'SELECT 1' | psql $${args})
if [ $${response} = '1' ];
then exit 0;
else echo "+++++++++++++DB $${POSTGRES_DB} is not up+++++++++++++"; exit 1;
fi
services:

reverse-proxy:
Expand Down Expand Up @@ -176,7 +190,46 @@ services:
source: /$PWD/docker/martin/config.yaml
target: /martin-config.yaml

tolgee-app:
image: tolgee/tolgee
environment:
SERVER_PORT: "8080"
SPRING_DATASOURCE_URL: "jdbc:postgresql://tolgee-db:5432/tolgee"
SPRING_DATASOURCE_USERNAME: "tolgee_user"
SPRING_DATASOURCE_PASSWORD: "tolgeepass"
TOLGEE_AUTHENTICATION_ENABLED: "false"
TOLGEE_AUTHENTICATION_JWT_SECRET: "dxpw5w66th5sa53m2hbgazmxaases92nqwifjigi3j9owznoyuq6frbnppc7bo9tjmgm5e"
TOLGEE_FILE_STORAGE_FS_DATA_PATH: "/data"
TOLGEE_FRONTEND_URL: "http://localhost:6003"
TOLGEE_POSTGRES_AUTOSTART_ENABLED: "false"
TOLGEE_TELEMETRY_ENABLED: "false"
volumes:
- tolgee-app-data:/data
depends_on:
tolgee-db:
condition: service_healthy
ports:
- target: 8080
published: 6003

tolgee-db:
image: "postgis/postgis:16-3.4"
environment:
POSTGRES_USER: "tolgee_user"
POSTGRES_PASSWORD: "tolgeepass"
POSTGRES_DB: "tolgee"
ports:
- target: 5432
published: 55435
volumes:
- tolgee-db-data:/var/lib/postgresql/data
healthcheck: *postgres-db-healthcheck



volumes:
db-data:
test-db-data:
legacy-db-data:
tolgee-app-data:
tolgee-db-data:

0 comments on commit 73a9bcc

Please sign in to comment.