Fix run server from docker compose

This commit is contained in:
zorn
2024-12-28 04:09:29 +10:00
parent 9348942b7c
commit c35a8fa7b7
2 changed files with 7 additions and 2 deletions

View File

@@ -1,7 +1,12 @@
#!/usr/bin/env bash
set -e
cd `dirname $0`/..
git pull
docker compose down
docker compose build
docker compose up -d web
sleep 1
./bin/cli migrate
docker compose up -d

View File

@@ -13,7 +13,7 @@ services:
build: .
image: touchh-py
restart: on-failure
command: ['python3', 'manage.py', 'runserver']
command: ['python3', 'manage.py', 'runserver', '0.0.0.0:8000']
depends_on: ['db']
volumes:
- .:/app