Skip to content

Commit 0932040

Browse files
authored
Merge pull request #1 from BotalovSerg/fix_01
fix
2 parents c161a94 + 0352b71 commit 0932040

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

docker-compose.yaml

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
services:
22
bot:
33
image: "botalovserg/app-bot-docker"
4-
env_file:
5-
- .env
4+
# build:
5+
# context: .
6+
# environment:
7+
# - APP_DB_URL=postgresql+asyncpg://botalov:botalov@db/bot_db
68
restart: "unless-stopped"
9+
volumes:
10+
- "/home/botalov/mycode/telegram-bot-notes/.env:/app/.env"
711
networks:
812
- my_networks
13+
command: ./run.sh
14+
915
depends_on:
1016
db:
1117
condition: service_healthy

run.sh

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
3+
alembic upgrade head
4+
python3 main.py

0 commit comments

Comments
 (0)