From 13213e4bf7d389d78ee6902127a9eab3a21febc6 Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 30 Mar 2023 22:03:38 +0000 Subject: [PATCH] ajout app docker LAMP --- docker-app/docker-compose.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 docker-app/docker-compose.yml diff --git a/docker-app/docker-compose.yml b/docker-app/docker-compose.yml new file mode 100644 index 0000000..97de686 --- /dev/null +++ b/docker-app/docker-compose.yml @@ -0,0 +1,32 @@ +version: "3.9" + +services: + php: + container_name: php +# image: php:apache + build: './php' + restart: always + ports: + - "8000:80" + volumes: + - ./code:/var/www/html + depends_on: + - db + env_file: + - .env + db: + container_name: db + image: mariadb + restart: always + environment: + MYSQL_ROOT_PASSWORD: $MYSQL_ROOT_PASSWORD + MYSQL_DATABASE: ${MYSQL_DATABASE} + MYSQL_USER: ${MYSQL_USER} + MYSQL_PASSWORD: ${MYSQL_PASSWORD} + volumes: + - ./db:/var/lib/mysql + - ./db-init:/docker-entrypoint-initdb.d + env_file: + - .env + +