From ab967c6f9cc823a651fade8fc1cf3812dc4579e1 Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Sat, 6 Apr 2024 22:30:58 +0200 Subject: [PATCH] docker dev: Add config for phpMyAdmin, cleanup --- DEVELOPMENT.md | 5 +++++ docker/dev/docker-compose.yml | 22 +++++++++------------- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index 49f8ed05..aef759b9 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -88,6 +88,11 @@ docker compose exec es_workspace yarn build:watch docker compose exec -e THEMES=0,1 es_workspace yarn build:watch ``` +It might also be useful to have an interactive database interface for which a phpMyAdmin instance can be startet at [http://localhost:8888](http://localhost:8888). +```bash +docker compose --profile dev up +``` + ## Localhost You can find your local Engelsystem on [http://localhost:5080](http://localhost:5080). diff --git a/docker/dev/docker-compose.yml b/docker/dev/docker-compose.yml index 359e3f69..e45e362c 100644 --- a/docker/dev/docker-compose.yml +++ b/docker/dev/docker-compose.yml @@ -21,9 +21,6 @@ services: env_file: deployment.env ports: - "5080:80" - networks: - - database - - internet depends_on: - es_database es_workspace: @@ -44,11 +41,17 @@ services: ENVIRONMENT: development MAIL_DRIVER: log APP_NAME: Engelsystem DEV - networks: - - database - - internet depends_on: - es_database + es_phpmyadmin: + image: phpmyadmin + environment: + PMA_HOST: es_database + ports: + - "8888:80" + depends_on: + - es_database + profiles: [ dev ] es_database: image: mariadb:10.2 environment: @@ -59,12 +62,5 @@ services: MYSQL_INITDB_SKIP_TZINFO: "yes" volumes: - db:/var/lib/mysql - networks: - - database volumes: db: {} - -networks: - database: - internal: true - internet: