mirror of https://github.com/logos-co/open-law.git
fix ports in project.env nd docker-compose.yml
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
af08628c74
commit
d9fc36e6f8
|
@ -14,18 +14,17 @@ services:
|
||||||
PGPASSWORD: ${POSTGRES_PASSWORD:-passwd}
|
PGPASSWORD: ${POSTGRES_PASSWORD:-passwd}
|
||||||
PGUSER: ${POSTGRES_USER:-postgres}
|
PGUSER: ${POSTGRES_USER:-postgres}
|
||||||
ports:
|
ports:
|
||||||
- 127.0.0.1:${LOCAL_DB_PORT:-15432}:5432
|
- '127.0.0.1:${LOCAL_DB_PORT:-15432}:5432'
|
||||||
|
|
||||||
app:
|
app:
|
||||||
build: .
|
build: .
|
||||||
# restart: always
|
# restart: always
|
||||||
command: sh ./start_server.sh
|
command: sh ./start_server.sh
|
||||||
environment:
|
env_file: ./project.env
|
||||||
APP_ENV: production
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
ports:
|
ports:
|
||||||
- 127.0.0.1:${LOCAL_WEB_PORT:-8000}:8000
|
- '127.0.0.1:${LOCAL_WEB_PORT:-8000}:${LOCAL_WEB_PORT:-8000}'
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
db_data:
|
db_data:
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
# Put environment variables that hold sensitive data such as passwords here.
|
# Put environment variables that hold sensitive data such as passwords here.
|
||||||
# NOTE: This file will not be placed under version control.
|
# NOTE: This file will not be placed under version control.
|
||||||
|
|
||||||
|
APP_ENV=production
|
||||||
APP_NAME=Open Law
|
APP_NAME=Open Law
|
||||||
SERVER_NAME=127.0.0.1:5006
|
SERVER_NAME=127.0.0.1:8000
|
||||||
SECRET_KEY=set_here_secret
|
SECRET_KEY=set_here_secret
|
||||||
|
|
||||||
# Database
|
# Database
|
||||||
|
@ -17,8 +18,7 @@ DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGR
|
||||||
DEVEL_DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@127.0.0.1:${LOCAL_DB_PORT}/${POSTGRES_DB}
|
DEVEL_DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@127.0.0.1:${LOCAL_DB_PORT}/${POSTGRES_DB}
|
||||||
|
|
||||||
# WEB app
|
# WEB app
|
||||||
LOCAL_WEB_PORT=8080
|
LOCAL_WEB_PORT=8000
|
||||||
|
|
||||||
|
|
||||||
# Super admin
|
# Super admin
|
||||||
ADMIN_USERNAME=admin
|
ADMIN_USERNAME=admin
|
||||||
|
|
|
@ -4,4 +4,4 @@ poetry run flask db upgrade
|
||||||
# echo Run app
|
# echo Run app
|
||||||
# flask run -h 0.0.0.0
|
# flask run -h 0.0.0.0
|
||||||
echo Run app server
|
echo Run app server
|
||||||
poetry run gunicorn -w 4 -b 0.0.0.0 'wsgi:app' $@
|
poetry run gunicorn -w 4 -b "0.0.0.0:$LOCAL_WEB_PORT" 'wsgi:app' $@
|
||||||
|
|
Loading…
Reference in New Issue