Mythic icon indicating copy to clipboard operation
Mythic copied to clipboard

[Feature Request] Ability to override docker-compose.yml for manual customization

Open rundx opened this issue 1 month ago • 1 comments

Any manual modification in docker-compose.yml will be lost after running mythic-cli so I suggest checking for override compose file like compose.custom.yml and if exist it should be included as in:

docker compose -f docker-compose.yml -f compose.custom.yml up -d

Now we can easily merge, override the existing services configuration or add new services

compose.custom.yml

networks:
  traefik:
    external: true

services:
  mythic_nginx:
    labels:
      - "traefik.enable=true"
      - "traefik.http.routers.mythic.service=mythic"
      - "traefik.http.routers.mythic.rule=Host(`mythic.domain.internal`)"
      - "traefik.http.services.mythic.loadbalancer.server.port=${NGINX_PORT}"

https://docs.docker.com/compose/how-tos/multiple-compose-files/merge/

rundx avatar Oct 23 '25 11:10 rundx

Interesting, I wasn't aware of compose's merge functionality. Mythic-cli overwrites stuff in the docker compose file to try to make sure that things stay compliant with mythic server updates and to usually prevent people from accidentally breaking things.

I can add this to the list

its-a-feature avatar Oct 27 '25 19:10 its-a-feature