CasaOS Run Docker Post Deployment Script reddit / selfhosted ---------------------------------------------------------------------- PaulRobinson1978 ยท 2023-11-22 17:06 I'm new to CasaOS and fairly new to docker but have been able to deploy some containers on my Zimaboard. I have manually installed SWAG with the compose file which works fine but was wondering is it possible to run some post shell scripts automatically once the docker container is started. I want to installed keepalived as i plan to run two zimaboards with either an active/active or active/passive swag reverse proxy. The docker images do not come with this package automatically deployed but it is available via apk. I have been reading on the internet and have tried using command: sh script and entrypoint: sh script in the compose file but they don't seem to work and the swag services don't start or the container just restarts. Another method I have found is to use a dockerfile but i don't see anyway of do this with casaos. Can anyone help suggest a method i can run a post script automatically each time the container is started. This way when i come to update the container the package will be reinstalled and hopefully start keepalived with a config file I will put on an attached volume. Any help would be appreciated.