Configuring Kubo Docker container with environment variables?

Hi, I’m running Kubo in a docker container using ipfs/kubo:latest and I’m having to run a few things manually after the container is running in order to configure things for my setup.

ipfs bootstrap add ${MY_BOOTSTRAP_IP}
ipfs config --json Addresses.Swarm '["/ip4/0.0.0.0/tcp/4001", "/ip6/::/tcp/4001"]'
ipfs config --json Addresses.Announce [\"/ip4/${MY_BOOTSTRAP_IP}/tcp/4001\"]

Currently I’m using a container-init.d script to run these, which works great. However, I’d like to make a Docker Compose configuration available to people who can only copy and paste a compose.yml into a GUI application (QNAP’s Container Station).

Is there a way to set these things using environment variables like there is for IPFS Cluster?