https://docs.docker.com/compose/compose-file/compose-file-v3/
https://docs.docker.com/compose/samples-for-compose/
version: '2'
services:
kafka2mongo-2:
image: hub.windinfo.cn/goldwind/databack:2.1.6
environment:
KAFKA_ADDRESS3: kafka-local:9092
MONGO_POC_URI3: mongodb://admin:uqPfHx6sXsyF@52.83.139.139:59997,52.83.224.86:59998,52.83.138.55:59999/admin?replicaSet=rs0
GROUP_ID1: group1-a
GROUP_ID2: group2
GROUP_ID3: group3
GROUP_ID4: group4
stdin_open: true
tty: true
links:
- kafka-local:kafka-local
command:
- python
- kafka2mongo.py
kafka-prox2:
image: rancher/external-service
vfw-client:
image: hub.windinfo.cn/digest/vfw-client:0.0.1-rc2
environment:
FILE_HANDLER_TYPE: delete
VFW_VIRTUAL_HOST: 10.1.0.120
VFW_PORT: '9898'
volumes:
- /mnt/vfw:/mnt/vfw:rw
labels:
io.rancher.container.pull_image: always
databack2cloud-testku:
image: hub.windinfo.cn/goldwind/databack:2.1.6
environment:
KAFKA_ADDRESS3: kafka-local:9092
GROUP_ID1: gtest1
GROUP_ID2: gtest2
GROUP_ID3: gtest3
GROUP_ID4: gtest4
KAFKA_ADDRESSCLOUD: 52.82.17.226:9092,52.82.52.63:9092,52.82.35.112:9092
stdin_open: true
tty: true
links:
- kafka-local:kafka-local
command:
- python
- threequdata2cloud.py
labels:
io.rancher.container.pull_image: always
kafka-txy:
image: rancher/external-service
down-json:
image: hub.windinfo.cn/poca/prediction:0.6.7
environment:
S3_PATH: /WPF/ZJF005_330482,/WPF/FJGHLM_350524,/WPF/ZJGHJX_330401,/WPF/ZJG027_330522,/WPF/ZJSMLMS_331022,/WPF/ZJG088_330481
KAFKA_ADDRESS: kafka-local:9092
PARSE_MOMENT: '0750'
USE_TYPE: ftp
stdin_open: true
volumes:
- /mnt/vfw/caster:/data
- /mnt/:/pos
tty: true
links:
- kafka-local:kafka-local
databack2cloud-txy:
image: hub.windinfo.cn/goldwind/databack:2.1.6
environment:
KAFKA_ADDRESS3: kafka-local:9092
GROUP_ID1: gtxy1
GROUP_ID2: gtxy2
GROUP_ID3: gtxy3
GROUP_ID4: gtxy4
KAFKA_ADDRESSCLOUD: kafka:9092
stdin_open: true
tty: true
links:
- kafka-local:kafka-local
- kafka-txy:kafka
command:
- python
- dataTo2qu.py
labels:
io.rancher.container.pull_image: always
downlog2mongo:
image: hub.windinfo.cn/poca/ktom:0.0.7
environment:
MONGO_POC_URI: mongodb://admin:uqPfHx6sXsyF@52.83.139.139:59997,52.83.224.86:59998,52.83.138.55:59999/admin?replicaSet=rs0
TOPIC: downlog
TBL_DEST: runlog_submit
TBL_INDEX: wfid,type,service,since,number
KAFKA_ADDRESS: kafka-local:9092
stdin_open: true
tty: true
links:
- kafka-local:kafka-local
labels:
io.rancher.container.pull_image: always
ipecho:
image: hub.windinfo.cn/metro/ipecho:0.0.1
environment:
SLEEP_TIME: 360s
labels:
io.rancher.container.pull_image: always
kafka-local:
image: hub.windinfo.cn/goldwind/spotify-kafka:0.10.1.0
environment:
ADVERTISED_PORT: '9092'
ADVERTISED_HOST: kafka-local
stdin_open: true
tty: true
ports:
- 9092:9092/tcp
labels:
io.rancher.container.pull_image: always
casterd-month2:
image: hub.windinfo.cn/poca/prediction:0.2.6.fileobj
environment:
S3_PATH: wrf_monthly/ZJF016_330225,wrf_monthly/ZJF012_330226,wrf_monthly/FJGHLM_350524,wrf_monthly/ZJGHJX_330401,wrf_monthly/浙江.旭辉光伏发电_330481,wrf_monthly/ZJG027_330522,wrf_monthly/ZJF005_330482,wrf_monthly/ZJSMLMS_331022
POSTION_PATH: /pos
stdin_open: true
volumes:
- /mnt/vfw/monthpre:/data
- /mnt/pos:/pos
tty: true
labels:
io.rancher.container.pull_image: always
version: "3.7"
services:
flask-svc:
image: python_base_gunicorn:v3
#command: [ "/bin/sh", "-c","sleep 2d" ]
command: [ "/bin/sh", "-c", "cd /py; python3 web.py" ]
ports:
- "5000:5000"
volumes:
- "/home/pic:/py"
environment:
- SDK_AKS_ENV=prod
busy-svc:
image: ai-image.jdcloud.com/neuhub-pai/busybox:1.29.3
command: [ "/bin/sh", "-c","sleep 2d" ]
network_mode: "service:flask-svc". #这样busy-svc就和flask-svc在一个网络里了,可以通过127.0.0.1通信了