docker dev: Add config for phpMyAdmin, cleanup

This commit is contained in:
Igor Scheller 2024-04-06 22:30:58 +02:00 committed by xuwhite
parent 87b50507f3
commit ab967c6f9c
2 changed files with 14 additions and 13 deletions

View File

@ -88,6 +88,11 @@ docker compose exec es_workspace yarn build:watch
docker compose exec -e THEMES=0,1 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 ## Localhost
You can find your local Engelsystem on [http://localhost:5080](http://localhost:5080). You can find your local Engelsystem on [http://localhost:5080](http://localhost:5080).

View File

@ -21,9 +21,6 @@ services:
env_file: deployment.env env_file: deployment.env
ports: ports:
- "5080:80" - "5080:80"
networks:
- database
- internet
depends_on: depends_on:
- es_database - es_database
es_workspace: es_workspace:
@ -44,11 +41,17 @@ services:
ENVIRONMENT: development ENVIRONMENT: development
MAIL_DRIVER: log MAIL_DRIVER: log
APP_NAME: Engelsystem DEV APP_NAME: Engelsystem DEV
networks:
- database
- internet
depends_on: depends_on:
- es_database - es_database
es_phpmyadmin:
image: phpmyadmin
environment:
PMA_HOST: es_database
ports:
- "8888:80"
depends_on:
- es_database
profiles: [ dev ]
es_database: es_database:
image: mariadb:10.2 image: mariadb:10.2
environment: environment:
@ -59,12 +62,5 @@ services:
MYSQL_INITDB_SKIP_TZINFO: "yes" MYSQL_INITDB_SKIP_TZINFO: "yes"
volumes: volumes:
- db:/var/lib/mysql - db:/var/lib/mysql
networks:
- database
volumes: volumes:
db: {} db: {}
networks:
database:
internal: true
internet: