chat_moderator_bot/docker-compose.yml

34 lines
587 B
YAML
Raw Permalink Normal View History

2024-07-17 20:35:45 +00:00
services:
bot:
build:
context: .
restart: always
depends_on:
- db
env_file:
- .env
db:
image: postgres
restart: always
environment:
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_NAME}
expose:
- '5432'
volumes:
- postgres_data:/var/lib/postgresql/data
redis:
image: redis:latest
restart: always
command: [ "redis-server", "--requirepass", "4CEqaD0JL8gTM4XWVt8K" ]
expose:
- '6379'
volumes:
- redis_data:/data
volumes:
postgres_data:
redis_data: