Comments (3)
Ok. I find it!!
In the .env
file I had this line:
DB_HOST=localhost
But actually the comment says: # If using docker, DB_HOST is the database container name
So, I rename it to
DB_HOST=mmgis-db-1
And now I can connect to the db. Thank you for the support!
from mmgis.
Hi and interesting. Any chance you already have postgresql on your machine and are pointing to the same data directory? Maybe try changing the DB_NAME
in your .env to point to another database other than db
. I would also try entering the mmgis docker container and check the connection to postgres from there with the values you have in the .env. Something like:
docker ps
docker exec -it {mycontainer} bash
apt install postgresql-client
psql -h {host} -U {username} -p
from mmgis.
@tariqksoliman Thank you for your help.
I checked whether postgresql db is already running on my host, and that seems not to be the case.
❯ sudo systemctl status postgresql
Unit postgresql.service could not be found.
I changed DB_NAME
and that did not have any effect. Yet, I tried to enter the mmgis container from another terminal window (after running docker compose up
) and I get:
❯ docker exec -it 80f835b29091 bash
Error response from daemon: Container 80f835b290910343ec73b16b37af4d182983b2b7a7448ee5bf8a5647dbd69494 is restarting, wait until the container is running
This is because the mmgis container keeps restarting.
I share my docker-compose.yml
version: "3"
services:
mmgis:
build: .
depends_on:
- db
env_file: .env
ports:
- 8888:8888
restart: on-failure
volumes:
- ./Missions:/usr/src/app/Missions
db:
image: postgis/postgis:10-2.5-alpine
env_file: .env
ports:
- 5432:5432
restart: on-failure
volumes:
- mmgis-db:/var/lib/postgresql/data
volumes:
mmgis-db:
and the relevant part of my .env
file
# Postgres' default port is 5432
DB_PORT=5432
DB_NAME=db
DB_USER=postgres
DB_PASS=test
not sure what else to try for the moment..
from mmgis.
Related Issues (20)
- [New Feature]: Add parametrization for python binary called
- [New Feature]: MMGIS Python module for Jupyter Notebooks
- [New Feature]: Provide Jupyter Notebook code snippet from feature search
- [New Feature]: Support for flight campaigns
- [New Feature]: Consistent text alignment in Identifier Tool readouts
- [New Feature]: Apply scale factor to Identifier Tool source data readouts
- [New Feature]: Viewer - PDFs
- [Bug]: HTML renders in the Info tool Feature at top
- [New Feature]: Separate layer variables for FeatureID, mouseover, and onClick
- [New Feature]: A quick way to produce colormaps for many tiled layers
- [Bug]: Search not working with geodatasets
- [Bug]: first search layer turns on automatically
- [Bug]: Filtering a geodataset still shows all features
- [Bug]: Opening Settings on a Layer turns that layer on
- [Bug]: Deeplink to selected point or polygon fails HOT 1
- [Bug]: RawVariables Info section does not work in dynamicExtent is true
- [New Feature]: mmgisAPI.getActiveTools()
- [Bug]: Draw Tool - Point feature Symbols don't change from circle
- [New Feature]: Support icon library for vector layer shape field
- [New Feature]: Next/Previous Feature
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mmgis.