fix exposed ports
This commit is contained in:
parent
910a71e0d2
commit
2e2bd3da61
2 changed files with 12 additions and 12 deletions
|
@ -2,7 +2,7 @@ version: '3'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
db:
|
db:
|
||||||
image: postgres:16
|
image: postgres:13
|
||||||
volumes:
|
volumes:
|
||||||
- "./data/db/pgdata:/var/lib/postgresql/data/"
|
- "./data/db/pgdata:/var/lib/postgresql/data/"
|
||||||
env_file:
|
env_file:
|
||||||
|
@ -13,11 +13,11 @@ services:
|
||||||
pgadmin:
|
pgadmin:
|
||||||
image: dpage/pgadmin4
|
image: dpage/pgadmin4
|
||||||
volumes:
|
volumes:
|
||||||
- "./data/dbadmin:/var/lib/pgadmin"
|
- "./data/dbadmin/pgadmin:/var/lib/pgadmin"
|
||||||
env_file:
|
env_file:
|
||||||
- ./.env
|
- ./.env
|
||||||
expose:
|
ports:
|
||||||
- 5050
|
- 5050:5050
|
||||||
restart: always
|
restart: always
|
||||||
networks:
|
networks:
|
||||||
- internal
|
- internal
|
||||||
|
@ -28,8 +28,8 @@ services:
|
||||||
context: ./flask
|
context: ./flask
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
command: gunicorn --bind 0.0.0.0:5000 manage:app
|
command: gunicorn --bind 0.0.0.0:5000 manage:app
|
||||||
expose:
|
ports:
|
||||||
- 5000
|
- 5000:5000
|
||||||
env_file:
|
env_file:
|
||||||
- ./.env
|
- ./.env
|
||||||
networks:
|
networks:
|
||||||
|
@ -43,11 +43,11 @@ services:
|
||||||
- "DOWNLOAD_PBF=https://download.geofabrik.de/europe/bulgaria-latest.osm.pbf"
|
- "DOWNLOAD_PBF=https://download.geofabrik.de/europe/bulgaria-latest.osm.pbf"
|
||||||
- "DOWNLOAD_POLY=https://download.geofabrik.de/europe/bulgaria.poly"
|
- "DOWNLOAD_POLY=https://download.geofabrik.de/europe/bulgaria.poly"
|
||||||
volumes:
|
volumes:
|
||||||
- "./data/osmtile:/data/database/"
|
- "./data/osmtile/pgdata:/data/database/"
|
||||||
command: "run"
|
command: "run"
|
||||||
#command: "import"
|
#command: "import"
|
||||||
expose:
|
ports:
|
||||||
- 8000
|
- 80:8000
|
||||||
networks:
|
networks:
|
||||||
- internal
|
- internal
|
||||||
restart: always
|
restart: always
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
from json import JSONEncoder
|
||||||
|
|
||||||
from werkzeug.utils import secure_filename
|
from werkzeug.utils import secure_filename
|
||||||
from flask import (
|
from flask import (
|
||||||
Flask,
|
Flask,
|
||||||
|
@ -11,9 +13,7 @@ from flask import (
|
||||||
redirect,
|
redirect,
|
||||||
url_for
|
url_for
|
||||||
)
|
)
|
||||||
from flask_sqlalchemy import SQLAlchemy
|
#from flask_sqlalchemy import SQLAlchemy
|
||||||
|
|
||||||
from flask.json import JSONEncoder
|
|
||||||
from flask_bootstrap import Bootstrap
|
from flask_bootstrap import Bootstrap
|
||||||
from flask_mail import Mail
|
from flask_mail import Mail
|
||||||
from flask_login import LoginManager
|
from flask_login import LoginManager
|
||||||
|
|
Loading…
Reference in a new issue