mirror of
https://github.com/pockethost/pockethost.git
synced 2025-06-09 15:46:41 +00:00
chore: add ulimit to containers
This commit is contained in:
parent
bc300b6540
commit
bed1c58628
@ -37,3 +37,5 @@ pnpm
|
|||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Discussion about ulimits https://chat.openai.com/share/f9ff9df7-9afd-48ce-9a04-d44b4a8a3066
|
||||||
|
@ -186,11 +186,17 @@ export const createPocketbaseService = async (
|
|||||||
name: `${name}-${+new Date()}`,
|
name: `${name}-${+new Date()}`,
|
||||||
HostConfig: {
|
HostConfig: {
|
||||||
AutoRemove: true,
|
AutoRemove: true,
|
||||||
CpuPercent: 10,
|
|
||||||
PortBindings: {
|
PortBindings: {
|
||||||
'8090/tcp': [{ HostPort: `${port}` }],
|
'8090/tcp': [{ HostPort: `${port}` }],
|
||||||
},
|
},
|
||||||
Binds,
|
Binds,
|
||||||
|
Ulimits: [
|
||||||
|
{
|
||||||
|
Name: 'nofile',
|
||||||
|
Soft: 1024,
|
||||||
|
Hard: 1024,
|
||||||
|
},
|
||||||
|
],
|
||||||
},
|
},
|
||||||
Tty: false,
|
Tty: false,
|
||||||
ExposedPorts: {
|
ExposedPorts: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user