added @kemoGPT bridge network config
This commit is contained in:
@@ -13,6 +13,8 @@ Environment=GITEA__database__HOST=gitea-db:3306
|
||||
Environment=GITEA__database__NAME=gitea
|
||||
Environment=GITEA__database__USER=gitea
|
||||
Environment=GITEA__database__PASSWD=gitea
|
||||
Environment=GITEA__service__DISABLE_REGISTRATION=true
|
||||
Environment=GITEA__openid__ENABLE_OPENID_SIGNUP=false
|
||||
|
||||
# Volume mappings
|
||||
Volume=/var/podman/gitea/data:/data:Z
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
#!/bin/bash
|
||||
|
||||
mkdir -p /etc/containers/networks/
|
||||
|
||||
# Create a Podman network bridge
|
||||
export BRIDGE_NAME="bridge0"
|
||||
export BRIDGE_BASE_IFNAME="bridge0"
|
||||
export BRIDGE_SUBNET="192.168.90.0/23"
|
||||
export BRIDGE_GATEWAY="192.168.90.1"
|
||||
|
||||
cat > /etc/containers/networks/${BRIDGE_NAME}.json << EOF
|
||||
{
|
||||
"name": "${BRIDGE_NAME}",
|
||||
"driver": "bridge",
|
||||
"id": "$(tr -dc a-f0-9 </dev/urandom | head -c 64; echo)",
|
||||
"network_interface": "${BRIDGE_BASE_IFNAME}",
|
||||
"subnets": [
|
||||
{
|
||||
"subnet": "${BRIDGE_SUBNET}",
|
||||
"gateway": "${BRIDGE_GATEWAY}"
|
||||
}
|
||||
],
|
||||
"ipv6_enabled": false,
|
||||
"internal": false,
|
||||
"dns_enabled": false,
|
||||
"ipam_options": {
|
||||
"driver": "host-local"
|
||||
}
|
||||
}
|
||||
EOF
|
||||
Reference in New Issue
Block a user