This repository has been archived on 2025-09-07. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
MouseyBot/docker-compose.yml
2025-08-22 11:37:26 +07:00

39 lines
830 B
YAML

version: "3"
services:
redis:
image: redis:latest
container_name: ${REDIS_HOST}
restart: on-failure
command:
- redis-server
environment:
- REDIS_HOST=${REDIS_HOST}
- REDIS_PORT=${REDIS_PORT}
ports:
- ${REDIS_PORT}:${REDIS_PORT}
database:
image: postgres:15
container_name: ${POSTGRES_HOST}
ports:
- ${POSTGRES_PORT}:${POSTGRES_PORT}
restart: on-failure
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
bot:
build:
context: .
dockerfile: ./Dockerfile
command: sh -c "pybabel compile -d ./Mousey/Locales -D bot && python -m Mousey to_update_telegram_profile"
restart: always
depends_on:
- redis
- database
volumes:
pgdata: