From 484ae328abe088df906b84a22c763000d7933233 Mon Sep 17 00:00:00 2001 From: chinky Date: Sat, 28 Nov 2020 15:35:06 +0800 Subject: [PATCH] to macvlan --- docker-compose.yml | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 7d28054..62bca48 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,11 +1,12 @@ -version: "2" +version: "3" -# networks: - # gitea: - # driver: macvlan - # ipam: - # config: - # - subnet: 192.168.8.0/24 +networks: + gitea_net: + driver: macvlan + ipam: + config: + - subnet: 192.168.222.0/23 + # gateway: 192.168.222.254 services: gitea: @@ -27,10 +28,10 @@ services: # - DB_PASSWD=gitea894231 - TZ=Asia/Shanghai restart: always - network_mode: "bridge" - # networks: - # - giteaļ¼š - # ipv4_address: 192.168.8.30 + # network_mode: "bridge" + networks: + gitea_net: + ipv4_address: 192.168.222.130 volumes: - ./data/gitea:/data - /sharedfolders/git/gitea:/backup