Prepare Docker
docker compose --profile '*' builddocker compose run --rm osmosispsql $DATABASE_URL -v ON_ERROR_STOP=1 -c "CREATE EXTENSION IF NOT EXISTS hstore;"
psql $DATABASE_URL -v ON_ERROR_STOP=1 -c "CREATE EXTENSION IF NOT EXISTS postgis;"
cat /usr/share/doc/osmosis/examples/pgsnapshot_schema_0.6.sql | psql $DATABASE_URL -v ON_ERROR_STOP=1
cat /usr/share/doc/osmosis/examples/pgsnapshot_schema_0.6_linestring.sql | psql $DATABASE_URL -v ON_ERROR_STOP=1
osmosis \
--read-pbf /data/landes-latest.osm.pbf \
--write-pgsql host=postgres database=postgres user=postgres password=postgresdocker compose run --rm api underpass-api initRun the HTTP server
docker compose up