Skip to content

Commit

Permalink
fix docker
Browse files Browse the repository at this point in the history
  • Loading branch information
pomid0rko0 committed Jun 8, 2021
1 parent 2e4f99f commit 7107c24
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
10 changes: 6 additions & 4 deletions docker-compose.yml
Expand Up @@ -10,8 +10,8 @@ services:
POSTGRES_PASSWORD: NSTUChatbot
POSTGRES_DB: NSTUChatbotDatabase

dpapi:
image: dpapi:latest
dbapi:
image: dbapi:latest
environment:
migrateOnStartup: "true"
NLU_HOST: nlu
Expand Down Expand Up @@ -46,10 +46,12 @@ services:
chatbot:
image: chatbot
build: ./tgbot_v2
env_file:
- .env
depends_on:
- dpapi
- dbapi
environment:
DB_API_HOST: http://dbapi
DB_API_HOST: http://dbapi:8000

volumes:
nlu:
4 changes: 2 additions & 2 deletions tgbot_v2/Dockerfile
@@ -1,9 +1,9 @@
FROM python:rc-alpine3.13

RUN pip install pytelegrambotapi requests
RUN pip install --upgrade pytelegrambotapi requests urllib3

WORKDIR /app/tgbot_v2

COPY ./tgbot_v2 .
COPY . .

CMD ["python", "bot.py"]

0 comments on commit 7107c24

Please sign in to comment.