api
This commit is contained in:
@@ -20,6 +20,11 @@ services:
|
||||
- PRIMARY_GATEWAY=192.168.200.11
|
||||
- SECONDARY_GATEWAY=192.168.201.11
|
||||
- PING_TARGET=192.168.202.100
|
||||
- API_ENABLED=true
|
||||
- API_BIND_ADDRESS=0.0.0.0
|
||||
- API_PORT=8080
|
||||
- API_USERNAME=admin
|
||||
- API_PASSWORD_HASH=$2b$12$placeholder_hash_replace_with_actual_bcrypt_hash
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
- SYS_ADMIN
|
||||
@@ -33,7 +38,8 @@ services:
|
||||
command: |
|
||||
sh -c "
|
||||
echo nameserver 192.168.10.1 > /etc/resolv.conf &&
|
||||
/bin/sleep infinity
|
||||
apt update && apt install -y iproute2 curl net-tools &&
|
||||
/bin/sleep infinity
|
||||
"
|
||||
networks:
|
||||
primary-net:
|
||||
@@ -50,6 +56,11 @@ services:
|
||||
- PRIMARY_GATEWAY=192.168.200.11
|
||||
- SECONDARY_GATEWAY=192.168.201.11
|
||||
- PING_TARGET=192.168.202.100
|
||||
- API_ENABLED=true
|
||||
- API_BIND_ADDRESS=0.0.0.0
|
||||
- API_PORT=8080
|
||||
- API_USERNAME=admin
|
||||
- API_PASSWORD_HASH=$2b$12$placeholder_hash_replace_with_actual_bcrypt_hash
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
- SYS_ADMIN
|
||||
|
||||
Reference in New Issue
Block a user