Mythic
Mythic copied to clipboard
[Feature Request] Ability to override docker-compose.yml for manual customization
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/
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