Browse Source

configure permanent ip for docker db

Olivier Massot 2 năm trước cách đây
mục cha
commit
3ae45fa232
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  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