sftp: give it a static ip
This commit is contained in:
@@ -880,9 +880,9 @@ function apply_db_migrations() {
|
||||
}
|
||||
|
||||
function check_services() {
|
||||
local services=("mysql" "postgresql" "mongodb" "mail" "graphite")
|
||||
local service_ip=("172.18.30.1" "172.18.30.2" "172.18.30.3" "172.18.30.4" "172.18.30.5")
|
||||
local service_port=("3000" "3000" "3000" "3000" "2003")
|
||||
local services=("mysql" "postgresql" "mongodb" "mail" "graphite" "sftp")
|
||||
local service_ip=("172.18.30.1" "172.18.30.2" "172.18.30.3" "172.18.30.4" "172.18.30.5" "172.18.30.6")
|
||||
local service_port=("3000" "3000" "3000" "3000" "2003" "3000")
|
||||
|
||||
for service in "${!services[@]}"; do
|
||||
# Check if container is running
|
||||
|
||||
@@ -52,6 +52,7 @@ exports = module.exports = {
|
||||
MONGODB_SERVICE_IPv4: '172.18.30.3',
|
||||
MAIL_SERVICE_IPv4: '172.18.30.4',
|
||||
GRAPHITE_SERVICE_IPv4: '172.18.30.5',
|
||||
SFTP_SERVICE_IPv4: '172.18.30.6',
|
||||
|
||||
NGINX_DEFAULT_CONFIG_FILE_NAME: 'default.conf',
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ exports = module.exports = {
|
||||
'mysql': 'registry.docker.com/cloudron/mysql:3.5.2@sha256:5cf52069a5ffb126afcaf6cdf91dba7e2c719efe48669e46b616979ef825e25b',
|
||||
'postgresql': 'registry.docker.com/cloudron/postgresql:6.1.1@sha256:8ba6d13670b475b03bffaf4b809e48254aa8baa271a1d0e1ce8a2288a2a56f82',
|
||||
'redis': 'registry.docker.com/cloudron/redis:3.7.0@sha256:fa0c0e757973fb434e359b142ed41c5b54c89715e5d9ad5a59e1ad54e0034219',
|
||||
'sftp': 'registry.docker.com/cloudron/sftp:3.9.3@sha256:5c55414d7a24a0c9413546e1b0a38e6c6637dcf76e45fc002b58d5bd268b8219',
|
||||
'sftp': 'registry.docker.com/cloudron/sftp:3.9.4@sha256:5c55414d7a24a0c9413546e1b0a38e6c6637dcf76e45fc002b58d5bd268b8219',
|
||||
'turn': 'registry.docker.com/cloudron/turn:1.8.2@sha256:9f3609969a5757837505c584c98246a3035a84a273b9be491665ac026423fd5f',
|
||||
}
|
||||
};
|
||||
|
||||
@@ -10,6 +10,7 @@ const apps = require('./apps.js'),
|
||||
assert = require('node:assert'),
|
||||
blobs = require('./blobs.js'),
|
||||
BoxError = require('./boxerror.js'),
|
||||
constants = require('./constants.js'),
|
||||
debug = require('debug')('box:sftp'),
|
||||
docker = require('./docker.js'),
|
||||
hat = require('./hat.js'),
|
||||
@@ -105,6 +106,7 @@ async function start(existingInfra) {
|
||||
--hostname sftp \
|
||||
--net cloudron \
|
||||
--net-alias sftp \
|
||||
--ip ${constants.SFTP_SERVICE_IPv4} \
|
||||
--log-driver syslog \
|
||||
--log-opt syslog-address=unix://${paths.SYSLOG_SOCKET_FILE} \
|
||||
--log-opt syslog-format=rfc5424 \
|
||||
|
||||
Reference in New Issue
Block a user