to macvlan

This commit is contained in:
chinky 2020-11-28 15:35:06 +08:00
parent 2fbd0abbc1
commit 484ae328ab
1 changed files with 12 additions and 11 deletions

View File

@ -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