Merms core files
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
APP_PORT=14700
|
||||||
FLASK_APP=project/__init__.py
|
FLASK_APP=project/__init__.py
|
||||||
FLASK_DEBUG=1
|
FLASK_DEBUG=1
|
||||||
SOCKET_URL=https://dev-socket.mermsemr.com
|
SOCKET_URL=https://dev-socket.mermsemr.com
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
APP_PORT=14700
|
||||||
FLASK_APP=project/__init__.py
|
FLASK_APP=project/__init__.py
|
||||||
FLASK_DEBUG=1
|
FLASK_DEBUG=1
|
||||||
SOCKET_URL=https://dev-socket.mermsemr.com
|
SOCKET_URL=https://dev-socket.mermsemr.com
|
||||||
|
|||||||
@@ -0,0 +1,16 @@
|
|||||||
|
APP_PORT=14700
|
||||||
|
FLASK_APP=project/__init__.py
|
||||||
|
FLASK_DEBUG=1
|
||||||
|
SOCKET_URL=https://socket.mermsemr.com
|
||||||
|
PANEL_URL=https://panel.mermsemr.com
|
||||||
|
DATABASE_URL=postgresql://merms_panel:merms_panel@10.20.30.60:5432/merms_panel
|
||||||
|
SQL_HOST=10.20.30.60
|
||||||
|
SQL_PORT=5432
|
||||||
|
DATABASE=postgres
|
||||||
|
APP_FOLDER=/usr/src/app
|
||||||
|
INITIAL_PRODUCT_URL=devprov.mermsemr.com
|
||||||
|
MAIL_SERVER=smtp.gmail.com
|
||||||
|
MAIL_PORT= 465
|
||||||
|
MAIL_USERNAME=message@chiefsoft.com
|
||||||
|
MAIL_PASSWORD=may12002!
|
||||||
|
JWT_SECRET=dce6bd64f7d7101de4fed7cfc1
|
||||||
+8
-33
@@ -1,37 +1,12 @@
|
|||||||
version: '2.2'
|
version: '3.8'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
web:
|
mermsemr-core:
|
||||||
build:
|
build: ./services/web
|
||||||
context: ./services/web
|
command: python manage.py run -h 0.0.0.0
|
||||||
dockerfile: Dockerfile.prod
|
|
||||||
command: gunicorn --bind 0.0.0.0:5000 manage:app
|
|
||||||
volumes:
|
volumes:
|
||||||
- static_volume:/home/app/web/project/static
|
- ./services/web/:/usr/src/app/
|
||||||
- media_volume:/home/app/web/project/media
|
|
||||||
expose:
|
|
||||||
- 5000
|
|
||||||
env_file:
|
|
||||||
- ./.env.prod
|
|
||||||
depends_on:
|
|
||||||
- db
|
|
||||||
db:
|
|
||||||
image: postgres:13
|
|
||||||
volumes:
|
|
||||||
- postgres_data_prod:/var/lib/postgresql/data/
|
|
||||||
env_file:
|
|
||||||
- ./.env.prod.db
|
|
||||||
nginx:
|
|
||||||
build: ./services/nginx
|
|
||||||
volumes:
|
|
||||||
- static_volume:/home/app/web/project/static
|
|
||||||
- media_volume:/home/app/web/project/media
|
|
||||||
ports:
|
ports:
|
||||||
- 1337:80
|
- "${APP_PORT:-14700}:5000"
|
||||||
depends_on:
|
env_file:
|
||||||
- web
|
- ./.env.production
|
||||||
|
|
||||||
volumes:
|
|
||||||
postgres_data_prod:
|
|
||||||
static_volume:
|
|
||||||
media_volume:
|
|
||||||
+11
-14
@@ -1,25 +1,22 @@
|
|||||||
version: '3.8'
|
version: '3.8'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
web:
|
mermsemr-core:
|
||||||
build: ./services/web
|
build: ./services/web
|
||||||
command: python manage.py run -h 0.0.0.0
|
command: python manage.py run -h 0.0.0.0
|
||||||
volumes:
|
volumes:
|
||||||
- ./services/web/:/usr/src/app/
|
- ./services/web/:/usr/src/app/
|
||||||
ports:
|
ports:
|
||||||
- 5001:5000
|
- "${APP_PORT:-14700}:5000"
|
||||||
env_file:
|
env_file:
|
||||||
- ./.env.dev
|
- ./.env.dev
|
||||||
# depends_on:
|
|
||||||
# - db
|
|
||||||
# db:
|
|
||||||
# image: postgres:13
|
|
||||||
# volumes:
|
|
||||||
# - postgres_data:/var/lib/postgresql/data/
|
|
||||||
# environment:
|
|
||||||
# - POSTGRES_USER=hello_flask
|
|
||||||
# - POSTGRES_PASSWORD=hello_flask
|
|
||||||
# - POSTGRES_DB=hello_flask_dev
|
|
||||||
|
|
||||||
volumes:
|
#volumes:
|
||||||
postgres_data:
|
# postgres_data:
|
||||||
|
#
|
||||||
|
#networks:
|
||||||
|
# default:
|
||||||
|
# driver: bridge
|
||||||
|
# ipam:
|
||||||
|
# config:
|
||||||
|
# - subnet: 172.16.55.0/24
|
||||||
Reference in New Issue
Block a user