We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c161a94 + 0352b71 commit 0932040Copy full SHA for 0932040
docker-compose.yaml
@@ -1,11 +1,17 @@
1
services:
2
bot:
3
image: "botalovserg/app-bot-docker"
4
- env_file:
5
- - .env
+ # build:
+ # context: .
6
+ # environment:
7
+ # - APP_DB_URL=postgresql+asyncpg://botalov:botalov@db/bot_db
8
restart: "unless-stopped"
9
+ volumes:
10
+ - "/home/botalov/mycode/telegram-bot-notes/.env:/app/.env"
11
networks:
12
- my_networks
13
+ command: ./run.sh
14
+
15
depends_on:
16
db:
17
condition: service_healthy
run.sh
@@ -0,0 +1,4 @@
+#!/bin/bash
+alembic upgrade head
+python3 main.py
0 commit comments