-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
34 lines (33 loc) · 1.37 KB
/
docker-compose.dev.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
services:
django:
depends_on:
eth:
condition: service_healthy
command: /bin/sh -c '
cp /tmp/make_db_setting.sh ./backend/make_db_setting.sh &&
sh ./backend/make_db_setting.sh &&
cd backend &&
python manage.py makemigrations accounts &&
python manage.py makemigrations tournament &&
python manage.py makemigrations friend &&
python manage.py makemigrations pong &&
python manage.py makemigrations users &&
python manage.py makemigrations notification &&
python manage.py makemigrations &&
python manage.py migrate &&
(python manage.py loaddata ./**/fixtures/initial_data_prod.json || echo '') &&
(python manage.py loaddata ./**/fixtures/initial_data.json || echo '') &&
(celery -A ft_trans worker -B -l info)&
(cd frontend && npm install && npm run build) &&
cd backend && daphne -e ssl:8000:privateKey=/tmp/server.key:certKey=/tmp/server.crt ft_trans.asgi:application
'
eth:
environment:
- PRIVATE_ACCOUNT_KEY=$PRIVATE_ACCOUNT_KEY
- PROVIDER_URL=$PROVIDER_URL
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:8545']
interval: 15s
timeout: 5s
retries: 3
command: /bin/sh -c "npx hardhat compile && npx hardhat node & sleep 10 && npx hardhat run scripts/deploy-local.js --network localhost && tail -f /dev/null"