Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dockerode
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chalermpong
dockerode
Commits
0e5d6fa0
Commit
0e5d6fa0
authored
Apr 23, 2024
by
chalermpong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix api
parent
453f6c65
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
Routes/api.js
+0
-0
app.js
+9
-3
No files found.
Routes/api.js
0 → 100644
View file @
0e5d6fa0
app.js
View file @
0e5d6fa0
...
...
@@ -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
// },
}
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment