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