Skip to content

Commit

Permalink
extend README on docker
Browse files Browse the repository at this point in the history
  • Loading branch information
cioddi committed Jun 3, 2024
1 parent 5ae47c6 commit 7faf8c1
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,16 @@ bin/console fom:user:resetroot
Run this command to start a local mapbender instance in a docker container using an internal sqlite database.

```bash
docker run mapbender/mapbender
docker run -p 80:8080 mapbender/mapbender
```

If you want mapbender to stay up and running in background add the `-d` option.

### ENV variables

You can use environment variables to adjust the configuration of a docker container.
E.g. the variable `MAPBENDER_DATABASE_URL` is used to setup another database as shown in the next example.

### external database

To run a Mapbender docker container configured to use an external database we will use the MAPBENDER_DATABASE_URL environment variable.
Expand Down

0 comments on commit 7faf8c1

Please sign in to comment.