add task feature

This commit is contained in:
buenosairesam
2025-01-25 07:04:22 -03:00
parent cbb7bf657a
commit 2da2f2641a
14 changed files with 666 additions and 154 deletions

View File

@@ -0,0 +1,20 @@
app:
build: .
command: python -u app.py
ports:
- "5000:5000"
volumes:
- .:/app
links:
- db
db:
image: mongo:latest
hostname: test_mongodb
environment:
- MONGO_INITDB_DATABASE=<mongo_database>
- MONGO_INITDB_ROOT_USERNAME=<mongo_username>
- MONGO_INITDB_ROOT_PASSWORD=<mongo_password>
volumes:
- ./init-db.js:/docker-entrypoint-initdb.d/init-db.js:ro
ports:
- 27017:27017