Tweak docker-compose to allow starting multiple instances
This commit is contained in:
@@ -3,12 +3,12 @@ services:
|
|||||||
web:
|
web:
|
||||||
build: .
|
build: .
|
||||||
ports:
|
ports:
|
||||||
- "5005:5005"
|
- "${WEB_PORT}:5005"
|
||||||
links:
|
links:
|
||||||
- mongo
|
- mongo
|
||||||
- rabbitmq
|
- rabbitmq
|
||||||
volumes:
|
volumes:
|
||||||
- "./config:/app/config"
|
- "${CONFIG_DIR}:/app/config"
|
||||||
- "./static:/app/static"
|
- "./static:/app/static"
|
||||||
environment:
|
environment:
|
||||||
- MICROBLOGPUB_AMQP_BROKER=pyamqp://guest@rabbitmq//
|
- MICROBLOGPUB_AMQP_BROKER=pyamqp://guest@rabbitmq//
|
||||||
@@ -25,6 +25,6 @@ services:
|
|||||||
mongo:
|
mongo:
|
||||||
image: "mongo:latest"
|
image: "mongo:latest"
|
||||||
volumes:
|
volumes:
|
||||||
- "./data:/data/db"
|
- "${DATA_DIR}:/data/db"
|
||||||
rabbitmq:
|
rabbitmq:
|
||||||
image: "rabbitmq:latest"
|
image: "rabbitmq:latest"
|
||||||
|
Reference in New Issue
Block a user