Files
rc-tgbot/docker-compose.yaml
T
2025-03-01 01:49:33 +03:00

31 lines
560 B
YAML
Executable File

services:
bot:
image: python:3.9
container_name: python_bot
working_dir: /usr/src/app
links:
- "mongodb:mongo"
volumes:
- ./app:/usr/src/app
depends_on:
- mongodb
command: sh -c "pip install -r requirements.txt && python main.py"
restart: unless-stopped
mongodb:
image: 'mongo:4.4.6'
ports:
- '27017:27017'
volumes:
- 'mongo-data:/data/db'
restart: unless-stopped
volumes:
mongo-data:
driver: local
driver_opts:
type: none
o: bind
device: ./.data