This repository has been archived by the owner on Aug 23, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Installation
Vincent edited this page Jun 25, 2021
·
1 revision
Currently the only way to deploy DroneMap in production is through Docker.
The example docker-compose.yml
is as follows.
services:
dronemap:
image: vimodev/dronemap:latest
ports:
- "3333:3333"
restart: unless-stopped
environment:
- DB_CONNECTION=mysql
- MYSQL_HOST=dronemap_database
- MYSQL_PORT=3306
- MYSQL_USER=dronemap
- MYSQL_PASSWORD=2024cad0b930c
- MYSQL_DB_NAME=dronemap
- TZ=Europe/Amsterdam
volumes:
- "/path/to/your/files:/footage:ro"
depends_on:
- dronemap_database
networks:
- dronemap-network
dronemap_database:
image: mariadb:10
environment:
- MYSQL_DATABASE=dronemap
- MYSQL_USER=dronemap
- MYSQL_PASSWORD=2024cad0b930c
- MYSQL_RANDOM_ROOT_PASSWORD=yes
- TZ=Europe/Amsterdam
networks:
- dronemap-network
ports:
- "3306:3306"
restart: unless-stopped
networks:
dronemap-network:
driver: bridge
enable_ipv6: false
ipam:
driver: default
config:
- subnet: 10.10.10.0/24
- DB_CONNECTION: Type of database connection. Developed with and tested with
mysql
- MYSQL_HOST: Host of the database
- MYSQL_PORT: Port database service is listening on
- MYSQL_USER: User in mysql database.
- MYSQL_PASSWORD: Password of user in mysql database
- MYSQL_DB_NAME: Database name
- TZ: Timezone
- It is possible that the app does not work properly and the container logs mention a refused connection. Either restart the container or run
node ace migration:run --force
in the container.