Skip to content

Commit

Permalink
Does it work yet?
Browse files Browse the repository at this point in the history
  • Loading branch information
duogenesis committed Feb 14, 2025
1 parent ab36e56 commit 4428edd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions database/initapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ def create_db(name):
time.sleep(1)

create_db('duo_api')
create_db('duo_chat')

def init_db():
# Now DB_NAME exists, we do do the rest of the init.
Expand Down
1 change: 1 addition & 0 deletions database/initchat.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ def create_db(name):
)
time.sleep(1)

create_db('duo_api')
create_db('duo_chat')

def init_db():
Expand Down
4 changes: 3 additions & 1 deletion docker-compose.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,13 @@ services:
- "5442:5442"
- "5443:5443"
environment:
DUO_API_HOST: http://api:5000
DUO_ENV: dev

DUO_DB_HOST: postgres
DUO_DB_PORT: 5432
DUO_DB_USER: postgres
DUO_DB_PASS: password

DUO_CHAT_PORTS: '5443'
healthcheck:
test: ["CMD", "bash", "-c", "[[ -e /db-initialized ]]"]
Expand Down

0 comments on commit 4428edd

Please sign in to comment.