Sign inSign up

divadsn/bluemap-nginx

By divadsn

•Updated over 2 years ago

Customized version of trafex/php-nginx with BlueMap webapp pre-installed.

Image
0

1.6K

divadsn/bluemap-nginx repository overview

⁠docker-bluemap-nginx

Customized version of trafex/php-nginx with BlueMap webapp pre-installed.

Build and push Docker image

⁠How to use?

You can deploy this image using Docker Compose. Here is an example of a docker-compose.yml⁠ file:

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.json

  mariadb:
    image: mariadb:10.5
    restart: unless-stopped
    environment:
      MYSQL_USER: bluemap
      MYSQL_PASSWORD: thisisaverysecurepassword
      MYSQL_INITDB_SKIP_TZINFO: '1'
    volumes:
      - mysql-vol:/var/lib/mysql

volumes:
  mysql-vol:

You can also deploy this image using the following command:

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

VariableDescriptionDefault value
MYSQL_HOSTHostname of the MySQL server127.0.0.1
MYSQL_PORTPort of the MySQL server3306
MYSQL_USERUsername of the MySQL userroot
MYSQL_PASSWORDPassword of the MySQL user""
MYSQL_DATABASEName of the MySQL databasebluemap

⁠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⁠ to the BlueMap integrated webserver.

Tag summary

Content type

Image

Digest

sha256:14fa224bc…

Size

41.4 MB

Last updated

over 2 years ago

docker pull divadsn/bluemap-nginx