chore: add ulimit to containers

This commit is contained in:
Ben Allfree 2023-11-07 15:45:49 -08:00
parent bc300b6540
commit bed1c58628
2 changed files with 9 additions and 1 deletions

View File

@ -37,3 +37,5 @@ pnpm
cd ..
```
Discussion about ulimits https://chat.openai.com/share/f9ff9df7-9afd-48ce-9a04-d44b4a8a3066

View File

@ -186,11 +186,17 @@ export const createPocketbaseService = async (
name: `${name}-${+new Date()}`,
HostConfig: {
AutoRemove: true,
CpuPercent: 10,
PortBindings: {
'8090/tcp': [{ HostPort: `${port}` }],
},
Binds,
Ulimits: [
{
Name: 'nofile',
Soft: 1024,
Hard: 1024,
},
],
},
Tty: false,
ExposedPorts: {