Skip to content

Commit 5c43a03

Browse files
committed
Introduce env file.
1 parent a65ac6a commit 5c43a03

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

.env.default

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
PYTHONDONTWRITEBYTECODE="True"
2+
FLASK_APP=healthtools/manage.py
3+
HTOOLS_ES_HOST=elasticsearch
4+
HTOOLS_MEMCACHED_URL=memcached:11211

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ To get started with developing on HealthTools.API, do the following:
5454
```shell
5555
git clone https://github.com/CodeForAfricaLabs/HealthTools.API.git`
5656
cd HealthTools.API
57+
touch .env
5758
docker-compose build web
5859
docker-compose up web
5960

docker-compose.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,9 @@ services:
2020
- memcached
2121
volumes:
2222
- "./:/htools-api"
23-
environment:
24-
- PYTHONDONTWRITEBYTECODE="True"
25-
- FLASK_APP=healthtools/manage.py
26-
- HTOOLS_ES_HOST=elasticsearch
27-
- HTOOLS_MEMCACHED_URL=memcached:11211
23+
env_file:
24+
- .env.default
25+
- .env
2826

2927
volumes:
3028
elasticsearch-data: {}

0 commit comments

Comments
 (0)