File tree Expand file tree Collapse file tree 3 files changed +0
-126
lines changed Expand file tree Collapse file tree 3 files changed +0
-126
lines changed Original file line number Diff line number Diff line change @@ -29,45 +29,12 @@ services:
2929 timeout: 2s
3030 retries: 2
3131 interval: 10s
32- ports:
33- - target: 15672
34- published: 15672
35- protocol: tcp
36- mode: host
3732 networks:
3833 - rabbit
3934 configs:
4035 - source: haproxy.cfg
4136 target: /usr/local/etc/haproxy/haproxy.cfg
4237
43- subscriber:
44- image: python:3.11
45- deploy:
46- replicas: 1
47- command: sh -c "pip install pika && python /app/sub.py"
48- environment:
49- - RABBIT_HOSTS=rabbit-loadbalancer_loadbalancer
50- - RABBIT_USER=${RABBIT_USER}
51- - RABBIT_PASS=${RABBIT_PASSWORD}
52- networks:
53- - rabbit
54- volumes:
55- - ./test/sub.py:/app/sub.py
56-
57- publisher:
58- image: python:3.11
59- deploy:
60- replicas: 1
61- command: sh -c "pip install pika && python /app/pub.py"
62- environment:
63- - RABBIT_HOSTS=rabbit-loadbalancer_loadbalancer
64- - RABBIT_USER=${RABBIT_USER}
65- - RABBIT_PASS=${RABBIT_PASSWORD}
66- networks:
67- - rabbit
68- volumes:
69- - ./test/pub.py:/app/pub.py
70-
7138networks:
7239 rabbit:
7340 name: ${RABBIT_NETWORK}
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments