How to setup self hosted config files

Sorry if this is in the wrong place, I couldn’t make a new topic under on-premise.

I’m trying to set up a new sentry instance using the docker images on version 21.6.1.

I’ve run ./

After running docker-compose up -d, all the various instances start up with “done” messages.

After a short while some of them shut down and permanently go to restarting

docker-compose ps shows:

sentry_onpremise_clickhouse_1 / Up 8123/tcp, 9000/tcp, 9009/tcp
sentry_onpremise_cron_1 /etc/sentry/ … Restarting
sentry_onpremise_geoipupdate_1 /usr/bin/geoipupdate -d /s … Exit 1
sentry_onpremise_ingest-consumer_1 /etc/sentry/ … Restarting
sentry_onpremise_kafka_1 /etc/confluent/docker/run Up (healthy) 9092/tcp
sentry_onpremise_memcached_1 memcached Up (healthy) 11211/tcp
sentry_onpremise_nginx_1 nginx -g daemon off; Up>80/tcp,:::9000->80/tcp
sentry_onpremise_post-process-forwarder_1 /etc/sentry/ … Restarting
sentry_onpremise_postgres_1 /opt/sentry/postgres-entry … Up (healthy) 5432/tcp
sentry_onpremise_redis_1 redis … Up (healthy) 6379/tcp
sentry_onpremise_relay_1 /bin/bash /docker-entrypoi … Up 3000/tcp
sentry_onpremise_sentry-cleanup_1 / 0 0 * * * g … Up 9000/tcp
sentry_onpremise_smtp_1 exim … Up 25/tcp
sentry_onpremise_snuba-api_1 ./ api Up 1218/tcp
sentry_onpremise_snuba-cleanup_1 / */5 * * * * … Up 1218/tcp
sentry_onpremise_snuba-consumer_1 ./ con … Up 1218/tcp
sentry_onpremise_snuba-outcomes-consumer_1 ./ con … Up 1218/tcp
sentry_onpremise_snuba-replacer_1 ./ rep … Up 1218/tcp
sentry_onpremise_snuba-sessions-consumer_1 ./ con … Up 1218/tcp
sentry_onpremise_snuba-subscription-consumer-events_1 ./ sub … Up 1218/tcp
sentry_onpremise_snuba-subscription-consumer-transactions_1 ./ sub … Up 1218/tcp
sentry_onpremise_snuba-transactions-cleanup_1 / */5 * * * * … Up 1218/tcp
sentry_onpremise_snuba-transactions-consumer_1 ./ con … Up 1218/tcp
sentry_onpremise_subscription-consumer-events_1 /etc/sentry/ … Restarting
sentry_onpremise_subscription-consumer-transactions_1 /etc/sentry/ … Restarting
sentry_onpremise_symbolicator-cleanup_1 / 55 23 * * * … Up 3021/tcp
sentry_onpremise_symbolicator_1 /bin/bash /docker-entrypoi … Up 3021/tcp
sentry_onpremise_web_1 /etc/sentry/ … Restarting
sentry_onpremise_worker_1 /etc/sentry/ … Restarting
sentry_onpremise_zookeeper_1 /etc/confluent/docker/run Up (healthy) 2181/tcp, 2888/tcp, 3888/tcp

Running docker-compose logs web gives:
“Error: Configuration file does not exist. Use ‘sentry init’ to initialize the file.”

I’m running this on Linux. Where exactly do I put the and config.yml files? I’ve tried putting them in ~/.sentry/ and in self-hosted-21.6.1/sentry/ directory. All of which have read/executable permissions for all users.

Appreciate any input.