Fix run server from docker compose
This commit is contained in:
@@ -1,7 +1,12 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
cd `dirname $0`/..
|
cd `dirname $0`/..
|
||||||
|
|
||||||
git pull
|
git pull
|
||||||
|
|
||||||
|
docker compose down
|
||||||
docker compose build
|
docker compose build
|
||||||
|
docker compose up -d web
|
||||||
|
sleep 1
|
||||||
|
./bin/cli migrate
|
||||||
|
docker compose up -d
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ services:
|
|||||||
build: .
|
build: .
|
||||||
image: touchh-py
|
image: touchh-py
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
command: ['python3', 'manage.py', 'runserver']
|
command: ['python3', 'manage.py', 'runserver', '0.0.0.0:8000']
|
||||||
depends_on: ['db']
|
depends_on: ['db']
|
||||||
volumes:
|
volumes:
|
||||||
- .:/app
|
- .:/app
|
||||||
|
|||||||
Reference in New Issue
Block a user