This commit is contained in:
2022-10-09 18:39:25 +01:00
parent ed61e5ab16
commit 05d31f6360
3 changed files with 3 additions and 31 deletions

View File

@@ -63,25 +63,3 @@ Access portainer (https://$LXC_CONTAINER_NAME:9443/) for inicial setup:
lxc rm $LXC_CONTAINER_NAME --force
```
## set a static ip
On lxc container
``` bash
Example:
/etc/netplan/01-netcfg.yaml
network:
version: 2
renderer: networkd
ethernets:
eth0:
dhcp4: no
addresses:
- 192.168.121.221/24
gateway4: 192.168.121.1
nameservers:
addresses: [8.8.8.8, 1.1.1.1]
``` bash

View File

@@ -99,6 +99,6 @@ mysql --host db -uroot -p ${MYSQL_DATABASE} < /db-dumps/$DB_FILE
#enter root password (root password is in enviromnent variable ${MYSQL_ROOT_PASSWORD})
```
### network related
If ip changed. change dns servers (git.lan) and reverse proxy (git.limbosoluttions.com) to new ip.