to macvlan
This commit is contained in:
parent
2fbd0abbc1
commit
484ae328ab
|
@ -1,11 +1,12 @@
|
||||||
version: "2"
|
version: "3"
|
||||||
|
|
||||||
# networks:
|
networks:
|
||||||
# gitea:
|
gitea_net:
|
||||||
# driver: macvlan
|
driver: macvlan
|
||||||
# ipam:
|
ipam:
|
||||||
# config:
|
config:
|
||||||
# - subnet: 192.168.8.0/24
|
- subnet: 192.168.222.0/23
|
||||||
|
# gateway: 192.168.222.254
|
||||||
|
|
||||||
services:
|
services:
|
||||||
gitea:
|
gitea:
|
||||||
|
@ -27,10 +28,10 @@ services:
|
||||||
# - DB_PASSWD=gitea894231
|
# - DB_PASSWD=gitea894231
|
||||||
- TZ=Asia/Shanghai
|
- TZ=Asia/Shanghai
|
||||||
restart: always
|
restart: always
|
||||||
network_mode: "bridge"
|
# network_mode: "bridge"
|
||||||
# networks:
|
networks:
|
||||||
# - gitea:
|
gitea_net:
|
||||||
# ipv4_address: 192.168.8.30
|
ipv4_address: 192.168.222.130
|
||||||
volumes:
|
volumes:
|
||||||
- ./data/gitea:/data
|
- ./data/gitea:/data
|
||||||
- /sharedfolders/git/gitea:/backup
|
- /sharedfolders/git/gitea:/backup
|
||||||
|
|
Loading…
Reference in New Issue