It is already possible to limit the memory used by all containers in
the config file:
```yaml
container:
options: --memory 200M
```
This limit can be further reduced (but not increased) by the same
option in a job:
```yaml
jobs:
job:
runs-on: docker
container:
image: code.forgejo.org/oci/node:20-bookworm
options: --memory 200M
steps:
- run: echo OK
```
or a service container:
```yaml
job:
my-job:
runs-on: docker
services:
pgsql:
image: postgres:15
options: --memory 1G
```
Refs https://docs.docker.com/engine/containers/resource_constraints/#limit-a-containers-access-to-memory
|
||
|---|---|---|
| .. | ||
| app | ||
| pkg | ||