Docker - fix .env files
This commit is contained in:
parent
5afe05390b
commit
cc4287ed32
@ -2,15 +2,12 @@ export HOST = 0.0.0.0
|
|||||||
export PORT = 5000
|
export PORT = 5000
|
||||||
export CLIENT_PORT = 3000
|
export CLIENT_PORT = 3000
|
||||||
|
|
||||||
export FLASK_APP = $(PWD)/fittrackee/__main__.py
|
|
||||||
export MIGRATIONS = $(PWD)/fittrackee/migrations
|
export MIGRATIONS = $(PWD)/fittrackee/migrations
|
||||||
export APP_WORKERS = 1
|
export APP_WORKERS = 1
|
||||||
export WORKERS_PROCESSES = 1
|
export WORKERS_PROCESSES = 1
|
||||||
|
|
||||||
# for dev env
|
# for dev env
|
||||||
export FLASK_ENV = development
|
export FLASK_ENV = development
|
||||||
export APP_SETTINGS = fittrackee.config.DevelopmentConfig
|
|
||||||
export DATABASE_URL = postgresql://fittrackee:fittrackee@$(HOST):5432/fittrackee
|
|
||||||
export DATABASE_TEST_URL = postgresql://fittrackee:fittrackee@$(HOST):5432/fittrackee_test
|
export DATABASE_TEST_URL = postgresql://fittrackee:fittrackee@$(HOST):5432/fittrackee_test
|
||||||
export TEST_APP_URL = http://$(HOST):$(PORT)
|
export TEST_APP_URL = http://$(HOST):$(PORT)
|
||||||
export TEST_CLIENT_URL = http://$(HOST):$(CLIENT_PORT)
|
export TEST_CLIENT_URL = http://$(HOST):$(CLIENT_PORT)
|
||||||
|
@ -19,7 +19,7 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "5000:5000"
|
- "5000:5000"
|
||||||
env_file:
|
env_file:
|
||||||
- .env.docker
|
- .env
|
||||||
depends_on:
|
depends_on:
|
||||||
- fittrackee-db
|
- fittrackee-db
|
||||||
- redis
|
- redis
|
||||||
|
@ -685,6 +685,7 @@ For evaluation purposes, docker files are available, installing **FitTrackee** f
|
|||||||
|
|
||||||
$ git clone https://github.com/SamR1/FitTrackee.git
|
$ git clone https://github.com/SamR1/FitTrackee.git
|
||||||
$ cd FitTrackee
|
$ cd FitTrackee
|
||||||
|
$ cp .env.docker .env
|
||||||
$ make docker-build docker-run docker-init
|
$ make docker-build docker-run docker-init
|
||||||
|
|
||||||
Open http://localhost:5000 and register.
|
Open http://localhost:5000 and register.
|
||||||
|
Loading…
Reference in New Issue
Block a user