Docker Postgres setup error

Hi
Cannot solve an issue I’m having with a new docker Chirpstack installation. Using docker compose I get the following error messages from Postgres when running docker-compose up. Using latest postgres docker image. The initdb scripts all seem to execute correctly.

Any ideas on how I can resolve please? Thanks

postgres_1                       | PostgreSQL init process complete; ready for start up.
postgres_1                       |
postgres_1                       | 2021-10-26 06:53:48.724 UTC [1] LOG:  starting PostgreSQL 14.0 (Debian 14.0-1.pgdg110+1) on arm-unknown-linux-gnueabihf, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 32-bit
postgres_1                       | 2021-10-26 06:53:48.725 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
postgres_1                       | 2021-10-26 06:53:48.726 UTC [1] LOG:  listening on IPv6 address "::", port 5432
postgres_1                       | 2021-10-26 06:53:48.749 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
postgres_1                       | 2021-10-26 06:53:48.765 UTC [67] LOG:  database system was shut down at 2021-10-26 06:53:48 UTC
postgres_1                       | 2021-10-26 06:53:48.787 UTC [1] LOG:  database system is ready to accept connections
postgres_1                       | 2021-10-26 06:53:49.449 UTC [74] ERROR:  relation "code_migration" does not exist
postgres_1                       | 2021-10-26 06:53:49.449 UTC [74] STATEMENT:  lock table code_migration
postgres_1                       | 2021-10-26 06:53:49.452 UTC [74] ERROR:  relation "code_migration" does not exist
postgres_1                       | 2021-10-26 06:53:49.452 UTC [74] STATEMENT:  lock table code_migration
postgres_1                       | 2021-10-26 06:53:50.536 UTC [75] ERROR:  relation "code_migration" does not exist
postgres_1                       | 2021-10-26 06:53:50.536 UTC [75] STATEMENT:  lock table code_migration
postgres_1                       | 2021-10-26 06:53:50.538 UTC [75] ERROR:  relation "code_migration" does not exist
postgres_1                       | 2021-10-26 06:53:50.538 UTC [75] STATEMENT:  lock table code_migration
postgres_1                       | 2021-10-26 06:53:52.905 UTC [79] FATAL:  database "chirpstack_store" does not exist

As usual user error!

My application-server config file was set up to use the extra event tables with [application_server.integration.postgresql] hence of course I need to create the hstore using the instructions under integrations for Postgresql.