Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/divadsn/docker-bluemap-nginx
Customized version of trafex/php-nginx with BlueMap webapp pre-installed.
https://github.com/divadsn/docker-bluemap-nginx
bluemap docker minecraft nginx php
Last synced: 14 days ago
JSON representation
Customized version of trafex/php-nginx with BlueMap webapp pre-installed.
- Host: GitHub
- URL: https://github.com/divadsn/docker-bluemap-nginx
- Owner: divadsn
- License: mit
- Created: 2023-06-19T00:17:55.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-06-18T05:13:41.000Z (5 months ago)
- Last Synced: 2024-06-18T06:31:35.815Z (5 months ago)
- Topics: bluemap, docker, minecraft, nginx, php
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/divadsn/bluemap-nginx
- Size: 14.6 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# docker-bluemap-nginx
Customized version of trafex/php-nginx with BlueMap webapp pre-installed.[![Build and push Docker image](https://github.com/divadsn/docker-bluemap-nginx/actions/workflows/docker-build.yml/badge.svg)](https://github.com/divadsn/docker-bluemap-nginx/actions/workflows/docker-build.yml)
## How to use?
You can deploy this image using Docker Compose. Here is an example of a [docker-compose.yml](https://github.com/divadsn/docker-bluemap-nginx/blob/master/docker-compose.yml) file:
```yaml
version: "3.8"
services:
bluemap:
image: divadsn/bluemap-nginx:latest
restart: unless-stopped
ports:
- "8100:80/tcp"
depends_on:
- mariadb
environment:
MYSQL_HOST: mariadb
MYSQL_PORT: '3306'
MYSQL_USER: bluemap
MYSQL_PASSWORD: thisisaverysecurepassword
MYSQL_DATABASE: bluemap
volumes:
- ./data/settings.json:/var/www/html/settings.jsonmariadb:
image: mariadb:10.5
restart: unless-stopped
environment:
MYSQL_USER: bluemap
MYSQL_PASSWORD: thisisaverysecurepassword
MYSQL_INITDB_SKIP_TZINFO: '1'
volumes:
- mysql-vol:/var/lib/mysqlvolumes:
mysql-vol:
```You can also deploy this image using the following command:
```bash
docker run -d \
--name bluemap \
-p 8100:80/tcp \
-e MYSQL_HOST=mariadb \
-e MYSQL_PORT=3306 \
-e MYSQL_USER=bluemap \
-e MYSQL_PASSWORD=thisisaverysecurepassword \
-e MYSQL_DATABASE=bluemap \
-v ./data/settings.json:/var/www/html/settings.json \
divadsn/bluemap-nginx:latest
```Note that in both cases, you need to create a `settings.json` file in the `./data` directory. You can also find this file in the BlueMap webroot directory.
## Environment variables
| Variable | Description | Default value |
| --- | --- | --- |
| `MYSQL_HOST` | Hostname of the MySQL server | `127.0.0.1` |
| `MYSQL_PORT` | Port of the MySQL server | `3306` |
| `MYSQL_USER` | Username of the MySQL user | `root` |
| `MYSQL_PASSWORD` | Password of the MySQL user | `""` |
| `MYSQL_DATABASE` | Name of the MySQL database | `bluemap` |## Limitations
- This image does not support HTTPS out of the box. You need to modify the Nginx `default.conf` in order to enable HTTPS or use a reverse proxy.
- You need to enable `write-markers-interval` and `write-players-interval` in BlueMap in order for live data to be written to the database.You can also modify the `default.conf` to [proxy live data requests](https://bluemap.bluecolored.de/wiki/webserver/ExternalWebserversSQL.html) to the BlueMap integrated webserver.