some fixs

This commit is contained in:
2025-03-01 01:49:33 +03:00
parent 2368b5df8c
commit a688a19b4e
13 changed files with 100 additions and 57 deletions
Regular → Executable
+9 -16
View File
@@ -1,32 +1,25 @@
version: '3.8'
services:
bot:
image: python:3.9
container_name: python_bot
working_dir: /usr/src/app
links:
- "mongodb:mongo"
volumes:
- ./app:/usr/src/app
networks:
- rc_network
depends_on:
- mongodb
command: sh -c "pip install -r requirements.txt && python main.py"
restart: unless-stopped
mongodb:
image: mongo:latest
# image: mongo:8.0-rc
container_name: mongodb
networks:
- rc_network
image: 'mongo:4.4.6'
ports:
- '27017:27017'
volumes:
- mongo-data:/data/db
networks:
rc_network:
driver: bridge
ipam:
config:
- subnet: 172.25.0.0/16
- 'mongo-data:/data/db'
restart: unless-stopped
volumes:
mongo-data:
@@ -34,4 +27,4 @@ volumes:
driver_opts:
type: none
o: bind
device: ./.data
device: ./.data