From 366a709004d46f080a989814246a6e6a7d7cca1b Mon Sep 17 00:00:00 2001 From: VANNEAU Date: Fri, 4 Aug 2023 16:03:13 +0200 Subject: [PATCH] Correction fonctionnement Docker --- .env | 2 ++ Dump20230313.sql => Dump/Dump20230313.sql | 0 docker-compose.yaml | 22 ++++++++++------------ 3 files changed, 12 insertions(+), 12 deletions(-) create mode 100644 .env rename Dump20230313.sql => Dump/Dump20230313.sql (100%) diff --git a/.env b/.env new file mode 100644 index 0000000..83fa1f5 --- /dev/null +++ b/.env @@ -0,0 +1,2 @@ +PATH_FRONT='C:\Users\jvanneau\Documents\ProjetInterne\AssistDB_V2_Front' +PATH_BACK='C:\Users\jvanneau\Documents\ProjetInterne\AssistDB_V2_Back' \ No newline at end of file diff --git a/Dump20230313.sql b/Dump/Dump20230313.sql similarity index 100% rename from Dump20230313.sql rename to Dump/Dump20230313.sql diff --git a/docker-compose.yaml b/docker-compose.yaml index f041a14..c2c6406 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -1,4 +1,4 @@ -version: "3" +version: "3.8" networks: network: driver: bridge @@ -8,39 +8,37 @@ networks: services: mysql-database: - image: mysql + image: mysql:8.0.34 container_name: mysql-database # NOTE: use of "mysql_native_password" is not recommended: https://dev.mysql.com/doc/refman/8.0/en/upgrading-from-previous-series.html#upgrade-caching-sha2-password # (this is just an example, not intended to be a production configuration) command: --default-authentication-plugin=mysql_native_password restart: always environment: - MYSQL_ROOT_PASSWORD: ***** + MYSQL_ROOT_PASSWORD: Pompom.21 MYSQL_DATABASE: prudencetest volumes: - ./Dump/:/docker-entrypoint-initdb.d/ - ./Database_Mysql/:/var/lib/mysql/ ports: - - 3400:3306 + - 3306:3306 networks: network: ipv4_address: 178.18.0.2 adminer: - image: adminer + image: adminer:4.8.1 restart: always ports: - - 8080:8080 + - 9003:8080 networks: network: ipv4_address: 178.18.0.3 java-backend: - build: ./AssistDB_V2_Back + build: ${PATH_BACK} container_name: java-backend ports: - 9001:9001 - expose: - - 9001 links: - mysql-database depends_on: @@ -50,12 +48,12 @@ services: ipv4_address: 178.18.0.5 angular-frontend: - build: ./AssistDB_V2_Front + build: ${PATH_FRONT} container_name: angular-frontend ports: - - 9002:9002 + - 9002:80 links: - java-backend networks: network: - ipv4_address: 178.18.0.4 + ipv4_address: 178.18.0.4 \ No newline at end of file