指定IP成功

This commit is contained in:
chinky 2020-11-28 21:13:11 +08:00
parent 53a1faeb13
commit 6cd17de68b
1 changed files with 4 additions and 1 deletions

View File

@ -3,10 +3,13 @@ version: "2"
networks:
gitea_net:
driver: macvlan
driver_opts:
parent: ens18
ipam:
driver: default
config:
- subnet: 192.168.222.0/23
# gateway: 192.168.222.254
gateway: 192.168.222.254
services:
gitea: