CUSTOMIZING YOUR STACK - nself-org/cli GitHub Wiki
nself build regenerates docker-compose.yml every time it runs. Put persistent
customizations in docker-compose.override.yml — Docker Compose merges it automatically
on every docker compose up.
Any manual change to docker-compose.yml is overwritten the next time you run
nself build. The override file is never touched by nself.
services:
nself-ai:
deploy:
resources:
limits:
memory: 2048M
cpus: '2.0'services:
postgres:
volumes:
- ./custom-postgresql.conf:/etc/postgresql/postgresql.conf:roservices:
hasura:
environment:
HASURA_GRAPHQL_EXPERIMENTAL_FEATURES: "streaming_subscriptions"Place docker-compose.override.yml in the same directory as your docker-compose.yml
(your project root). Docker Compose discovers and merges it automatically — no extra
flags needed.