addons: stable IPv4 addresses
give addons static IPv4 so one can reliably connect from outside via SSH tunnel
This commit is contained in:
@@ -11,6 +11,7 @@ const apps = require('./apps.js'),
|
||||
assert = require('assert'),
|
||||
AuditSource = require('./auditsource.js'),
|
||||
BoxError = require('./boxerror.js'),
|
||||
constants = require('./constants.js'),
|
||||
debug = require('debug')('box:platform'),
|
||||
delay = require('./delay.js'),
|
||||
fs = require('fs'),
|
||||
@@ -128,7 +129,7 @@ async function createDockerNetwork() {
|
||||
|
||||
await shell.promises.exec('createDockerNetwork', 'docker network rm cloudron || true');
|
||||
// the --ipv6 option will work even in ipv6 is disabled. fd00 is IPv6 ULA
|
||||
await shell.promises.exec('createDockerNetwork', 'docker network create --subnet=172.18.0.0/16 --ip-range=172.18.0.0/20 --gateway 172.18.0.1 --ipv6 --subnet=fd00:c107:d509::/64 cloudron');
|
||||
await shell.promises.exec('createDockerNetwork', `docker network create --subnet=${constants.DOCKER_IPv4_SUBNET} --ip-range=${constants.DOCKER_IPv4_RANGE} --gateway ${constants.DOCKER_IPv4_GATEWAY} --ipv6 --subnet=fd00:c107:d509::/64 cloudron`);
|
||||
}
|
||||
|
||||
async function removeAllContainers() {
|
||||
|
||||
Reference in New Issue
Block a user