Tweak docker-compose to allow starting multiple instances
This commit is contained in:
parent
c9ba124bdd
commit
eaf947fc3c
2 changed files with 6 additions and 3 deletions
3
.env
Normal file
3
.env
Normal file
|
@ -0,0 +1,3 @@
|
|||
WEB_PORT=5005
|
||||
CONFIG_DIR=./config
|
||||
DATA_DIR=./data
|
|
@ -3,12 +3,12 @@ services:
|
|||
web:
|
||||
build: .
|
||||
ports:
|
||||
- "5005:5005"
|
||||
- "${WEB_PORT}:5005"
|
||||
links:
|
||||
- mongo
|
||||
- rabbitmq
|
||||
volumes:
|
||||
- "./config:/app/config"
|
||||
- "${CONFIG_DIR}:/app/config"
|
||||
- "./static:/app/static"
|
||||
environment:
|
||||
- MICROBLOGPUB_AMQP_BROKER=pyamqp://guest@rabbitmq//
|
||||
|
@ -25,6 +25,6 @@ services:
|
|||
mongo:
|
||||
image: "mongo:latest"
|
||||
volumes:
|
||||
- "./data:/data/db"
|
||||
- "${DATA_DIR}:/data/db"
|
||||
rabbitmq:
|
||||
image: "rabbitmq:latest"
|
||||
|
|
Loading…
Reference in a new issue