An example of using Connexion + Nameko to build a distributed system
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

56 lines
1.0 KiB

---
version: "3.7"
services:
rabbitmq:
image: "rabbitmq:3.7.12-management"
expose:
- 5672
- 15672
ports:
- "15672:15672"
restart: always
networks:
- nameko
- default
connexion:
build:
dockerfile: Dockerfile
context: ./connexion_example
expose:
- 8080
ports:
- "8080:8080"
environment:
AMQP_URI: "pyamqp://guest:guest@rabbitmq"
restart: always
networks:
- nameko
depends_on:
- rabbitmq
pet_service:
build:
dockerfile: Dockerfile.pet_service
context: ./nameko_example
environment:
AMQP_URI: "pyamqp://guest:guest@rabbitmq"
restart: always
networks:
- nameko
depends_on:
- rabbitmq
logger_service:
build:
dockerfile: Dockerfile.logger_service
context: ./nameko_example
environment:
AMQP_URI: "pyamqp://guest:guest@rabbitmq"
restart: always
networks:
- nameko
depends_on:
- rabbitmq
networks:
nameko:
external: false