From eb3c561f85f1d78d0dbcabdcfd94e19665ca1e89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Wed, 14 Feb 2024 09:43:25 +0100 Subject: [PATCH] configure var-dump server in docker stack --- .env.dev | 3 +++ docker-compose.override.dev.template.yml | 10 +++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.env.dev b/.env.dev index 056a2e3..ac4caf3 100644 --- a/.env.dev +++ b/.env.dev @@ -11,5 +11,8 @@ MAILER_URL=smtp://smtp:1025 PGADMIN_DEFAULT_EMAIL=admin@chill.social PGADMIN_DEFAULT_PASSWORD=password + +VAR_DUMPER_SERVER=dumper:9912 + ## Phpstorm IDE project path PROJECT_DIR= diff --git a/docker-compose.override.dev.template.yml b/docker-compose.override.dev.template.yml index 54640ab..f6d5a92 100644 --- a/docker-compose.override.dev.template.yml +++ b/docker-compose.override.dev.template.yml @@ -22,6 +22,14 @@ services: - DATABASE_URL=postgresql://postgres:postgres@db:5432/postgres?serverVersion=14&charset=utf8 links: - smtp + - dumper + + dumper: + image: gitea.champs-libres.be/chill-project/chill-skeleton-basic/base-image:latest + entrypoint: ["/usr/bin/env"] + command: ["bin/var-dump-server", "--host", "0.0.0.0:9912"] + volumes: + - .:/var/www/app nginx: volumes: @@ -97,5 +105,5 @@ services: # volumes: # - "./docker/pgadmin4/servers.json:/pgadmin4/servers.json:ro" # - +