You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1020 B

version: '3.8'
services:
bot:
image: registry.mootfrost.ru/novagon/bot:latest
container_name: bot
restart: always
environment:
- API_ID=${API_ID}
- API_HASH=${API_HASH}
- BOT_TOKEN=${BOT_TOKEN}
- SESSION_NAME=NoVagonBot
- GOOGLE_PROJECT_ID=novagon-rg9f
- GOOGLE_APPLICATION_CREDENTIALS=df_key.json
- POSTGRES_HOST=${POSTGRES_HOST}
- POSTGRES_DATABASE=postgres
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_USER}
- POSTGRES_PORT=5432
build: .
volumes:
- ${SESSION_NAME}:/etc/telegram-api/session
- ${GOOGLE_APPLICATION_CREDENTIALS}:/etc/novagon/df_key.json
database:
image: postgres:alpine
container_name: database
restart: always
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_USER}
- POSTGRES_PORT=${POSTGRES_PORT}
volumes:
- ./data:/var/lib/postgresql/novagon/data
ports:
- ${POSTGRES_PORT}:${POSTGRES_PORT}