Skip to content

Update README docker instruction add resetroot#169

Merged
Phocacius merged 2 commits intomasterfrom
fix/readme_docker_resetroot
May 6, 2026
Merged

Update README docker instruction add resetroot#169
Phocacius merged 2 commits intomasterfrom
fix/readme_docker_resetroot

Conversation

@astroidex
Copy link
Copy Markdown
Member

Added instructions to create the Mapbender administration user.

Added instructions to create the Mapbender administration user.
@astroidex astroidex requested review from Phocacius and cioddi May 5, 2026 09:08
…apbender. Ensure docker examples are working
@cioddi
Copy link
Copy Markdown
Member

cioddi commented May 6, 2026

In d5b5d58 I have changed the Mapbender DB name in the examples from postgres to mapbender.
I had to add the doctrine:database:create command and some missing options to make sure the examples are working properly and are easy to follow.

Copy link
Copy Markdown
Member Author

@astroidex astroidex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

Comment thread README.md
2. Start the PostGIS database

`docker run --name db --network mapbender -p 55432:5432 -e POSTGRES_USER=pguser -e POSTGRES_PASSWORD=pgpass -e POSTGRES_DB=postgres postgis/postgis:14-3.4`
`docker run -d --name db --network mapbender -p 55432:5432 -e POSTGRES_USER=pguser -e POSTGRES_PASSWORD=pgpass -e POSTGRES_DB=postgres postgis/postgis:14-3.4`
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add -d to run the container in detached mode.

Comment thread README.md
3. Start Mapbender

`docker run --name mapbender --network mapbender -p 80:8080 -e MAPBENDER_DATABASE_URL="pgsql://pguser:pgpass@db:5432/postgres" mapbender/mapbender`
`docker run -d --name mapbender --network mapbender -p 80:8080 -e MAPBENDER_DATABASE_URL="pgsql://pguser:pgpass@db:5432/mapbender" mapbender/mapbender`
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add -d to run the container in detached mode.

Comment thread README.md
7. Create the Mapbender administration user

`docker exec mapbender php application/bin/console fom:user:resetroot`
`docker exec -it mapbender php application/bin/console fom:user:resetroot`
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add -it because resetroot is an interactive command.

@Phocacius Phocacius merged commit b0c6740 into master May 6, 2026
@Phocacius Phocacius deleted the fix/readme_docker_resetroot branch May 6, 2026 08:31
@astroidex astroidex added this to the 4.2.6 milestone May 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants