Add resources limits
This commit is contained in:
1 parent
49e31ff076
commit
3d4ef3e722
1 file changed
+15
@@ -11,10 +11,18 @@ services:
|
|||||||
- ./ssh-chat/motd:/motd:ro
|
- ./ssh-chat/motd:/motd:ro
|
||||||
- ./ssh-chat/admins:/admins:ro
|
- ./ssh-chat/admins:/admins:ro
|
||||||
command: "/usr/local/bin/ssh-chat --identity /run/secrets/chatkey --admin=/admins --log=/dev/stdout --motd=/motd"
|
command: "/usr/local/bin/ssh-chat --identity /run/secrets/chatkey --admin=/admins --log=/dev/stdout --motd=/motd"
|
||||||
|
read_only: true
|
||||||
|
deploy:
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpus: '0.1'
|
||||||
|
memory: '64M'
|
||||||
|
pids: 20
|
||||||
|
|
||||||
matterbridge:
|
matterbridge:
|
||||||
build: https://gitea.demb.uk/third-party-mirrors/matterbridge.git#v1.26.0
|
build: https://gitea.demb.uk/third-party-mirrors/matterbridge.git#v1.26.0
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
read_only: true
|
||||||
user: nobody
|
user: nobody
|
||||||
volumes:
|
volumes:
|
||||||
- ./matterbridge/matterbridge.toml:/etc/matterbridge/matterbridge.toml:ro
|
- ./matterbridge/matterbridge.toml:/etc/matterbridge/matterbridge.toml:ro
|
||||||
@@ -23,6 +31,13 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- ssh-chat
|
- ssh-chat
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpus: '0.1'
|
||||||
|
memory: '64M'
|
||||||
|
pids: 20
|
||||||
|
|
||||||
ts3:
|
ts3:
|
||||||
image: docker.io/teamspeak:3.13.7
|
image: docker.io/teamspeak:3.13.7
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|||||||
Reference in new issue
Block a user