指定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: networks:
gitea_net: gitea_net:
driver: macvlan driver: macvlan
driver_opts:
parent: ens18
ipam: ipam:
driver: default
config: config:
- subnet: 192.168.222.0/23 - subnet: 192.168.222.0/23
# gateway: 192.168.222.254 gateway: 192.168.222.254
services: services:
gitea: gitea: