docker compose pour bdd et phpmyadmin

This commit is contained in:
2023-01-10 23:37:02 +01:00
parent b36f1891de
commit 81dd02943a
2 changed files with 45 additions and 41 deletions

23
code/docker-compose.yaml Normal file
View File

@@ -0,0 +1,23 @@
version: "3.9"
services:
db:
image: mysql:latest
expose:
- 3306
volumes:
- ./db:/docker-entrypoint-initdb.d
restart: always
environment:
MYSQL_ROOT_PASSWORD: telereview
MYSQL_DATABASE: telereview
phpmyadmin:
image: phpmyadmin:latest
restart: always
environment:
PMA_ARBITRARY: 1
PMA_HOST: db
PMA_USER: root
PMA_PASSWORD: telereview
ports:
- 8080:80