Browse Source

configure permanent ip for docker db

Olivier Massot 2 years ago
parent
commit
3ae45fa232
1 changed files with 2 additions and 1 deletions
  1. 2 1
      docker-compose.yml

+ 2 - 1
docker-compose.yml

@@ -37,7 +37,8 @@ services:
     environment:
       MYSQL_ROOT_PASSWORD: ${MYSQL_PASS}
     networks:
-      - network
+      network:
+        ipv4_address: 172.20.1.3
 
   nginx:
     hostname: nginx