Портфолио: Папка для развертки под Docker

This commit is contained in:
Kirill Samoylenkov 2025-08-22 17:59:00 +07:00
parent d6e00c56e7
commit f6a2c1fa30
2 changed files with 16 additions and 18 deletions

View file

@ -1,39 +0,0 @@
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: