Commit 0e5d6fa0 by chalermpong

fix api

parent 453f6c65
......@@ -58,14 +58,20 @@ app.post('/api/docker/start-compose', (req, res) => {
const options = {
Image: image,
name: name,
Env: envVariables,
ExposedPorts: { [`${port}/tcp`]: {} },
Hostconfig: {
PortBindings: { [`${port}/tcp`]: [{ 'HostPort': hostPort }] },
Binds: binds,
Env: envVariables,
NetworkMode: network || 'bridge',
LoggingConfig: logging || { 'Driver': 'json-file' }
LogConfig: logging || { 'Driver': 'json-file' },
// LogConfig: {
// Config: {
// "max-file": logging.options.max-file,
// "max-size": logging.options.max-size
// },
// Type: logging.driver
// },
}
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment