add task feature
This commit is contained in:
20
docker-compose.template.yml
Normal file
20
docker-compose.template.yml
Normal 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
|
||||
Reference in New Issue
Block a user