-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.override.yml
46 lines (46 loc) · 1.52 KB
/
docker-compose.override.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
version: '3.5'
services:
api:
volumes:
- ./iroha_db_api:/app
ports:
- "5000:5000"
environment:
- FLASK_APP=manage.py
- FLASK_DEBUG=1
- IROHA_WSV_DB=${IROHA_WSV_DB}
- IROHA_WSV_DB_HOST=${IROHA_WSV_DB_HOST}
- IROHA_WSV_DB_PORT=${IROHA_WSV_DB_PORT}
- IROHA_WSV_DB_USER=${IROHA_WSV_DB_USER}
- IROHA_WSV_DB_PASSWORD=${IROHA_WSV_DB_PASSWORD}
- IROHA_USER=${IROHA_USER}
- IROHA_HOST=${IROHA_HOST}
- API_DB=${API_DB}
- API_DB_HOST=${API_DB_HOST}
- API_DB_PORT=${API_DB_PORT}
- API_DB_USER=${API_DB_USER}
- API_DB_PASSWORD=${API_DB_PASSWORD}
- API_DB_CRON=${API_DB_CRON}
- API_SECRET=${API_SECRET}
- 'RUN=flask run --host=0.0.0.0 --port=5000'
command: flask run --host=0.0.0.0 --port=5000
# Infinite loop, to keep it alive, for debugging
# command: bash -c "while true; do echo 'sleeping...' && sleep 10; done"
worker:
volumes:
- ./iroha_db_api:/app
environment:
- IROHA_WSV_DB=${IROHA_WSV_DB}
- IROHA_WSV_DB_HOST=${IROHA_WSV_DB_HOST}
- IROHA_WSV_DB_PORT=${IROHA_WSV_DB_PORT}
- IROHA_WSV_DB_USER=${IROHA_WSV_DB_USER}
- IROHA_WSV_DB_PASSWORD=${IROHA_WSV_DB_PASSWORD}
- IROHA_USER=${IROHA_USER}
- IROHA_HOST=${IROHA_HOST}
- API_DB=${API_DB}
- API_DB_HOST=${API_DB_HOST}
- API_DB_PORT=${API_DB_PORT}
- API_DB_USER=${API_DB_USER}
- API_DB_PASSWORD=${API_DB_PASSWORD}
- API_DB_CRON=${API_DB_CRON}
command: python3 manage.py worker