Docker Compose Commands

You can use an entrypoint script.

entrypoint: /code/entrypoint.sh

A similar command is available in the Dockerfile.