|
| 1 | +version: "3" |
| 2 | + |
| 3 | +networks: |
| 4 | + cocoannotator: |
| 5 | + external: false |
| 6 | + |
| 7 | +services: |
| 8 | + webserver: |
| 9 | + image: annotator_webclient_gpu |
| 10 | + container_name: annotator_webclient |
| 11 | + restart: "no" |
| 12 | + ports: |
| 13 | + - "5000:5000" |
| 14 | + environment: |
| 15 | + - SECRET_KEY=RandomSecretKeyHere |
| 16 | + - FILE_WATCHER=true |
| 17 | + - NAME=Test Annotator |
| 18 | + - MASK_RCNN_FILE=/models/mask_rcnn_coco.h5 |
| 19 | + # # Default coco classes (order matters) |
| 20 | + - MASK_RCNN_CLASSES= |
| 21 | + BG,person,bicycle,car,motorcycle,airplane, |
| 22 | + bus,train,truck,boat,traffic light, |
| 23 | + fire hydrant,stop sign,parking meter,bench,bird, |
| 24 | + cat,dog,horse,sheep,cow,elephant,bear, |
| 25 | + zebra,giraffe,backpack,umbrella,handbag,tie, |
| 26 | + suitcase,frisbee,skis,snowboard,sports ball, |
| 27 | + kite,baseball bat,baseball glove,skateboard, |
| 28 | + surfboard,tennis racket,bottle,wine glass,cup, |
| 29 | + fork,knife,spoon,bowl,banana',apple, |
| 30 | + sandwich,orange,broccoli,carrot,hot dog,pizza, |
| 31 | + donut,cake,chair,couch,potted plant,bed, |
| 32 | + dining table,toilet,tv,laptop,mouse,remote, |
| 33 | + keyboard,cell phone,microwave,oven,toaster, |
| 34 | + sink,refrigerator,book,clock,vase,scissors, |
| 35 | + teddy bear,hair drier,toothbrush |
| 36 | + volumes: |
| 37 | + - "./datasets:/datasets" |
| 38 | + - "./models:/models" |
| 39 | + depends_on: |
| 40 | + - database |
| 41 | + - workers |
| 42 | + networks: |
| 43 | + - cocoannotator |
| 44 | + workers: |
| 45 | + container_name: annotator_workers |
| 46 | + image: annotator_workers_gpu |
| 47 | + volumes: |
| 48 | + - "./backend/config:/workspace/config" |
| 49 | + - "./backend/webserver:/workspace/webserver" |
| 50 | + - "./backend/workers:/workspace/workers" |
| 51 | + - "./backend/database:/workspace/database" |
| 52 | + - "./datasets:/datasets" |
| 53 | + depends_on: |
| 54 | + - messageq |
| 55 | + - database |
| 56 | + ports: |
| 57 | + - 5555:5555 |
| 58 | + networks: |
| 59 | + - cocoannotator |
| 60 | + messageq: |
| 61 | + image: rabbitmq:3 |
| 62 | + container_name: annotator_message_q |
| 63 | + environment: |
| 64 | + - RABBITMQ_DEFAULT_USER=user |
| 65 | + - RABBITMQ_DEFAULT_PASS=password |
| 66 | + ports: |
| 67 | + - 5672:5672 |
| 68 | + networks: |
| 69 | + - cocoannotator |
| 70 | + database: |
| 71 | + image: mongo:4.0 |
| 72 | + container_name: annotator_mongodb |
| 73 | + restart: "no" |
| 74 | + environment: |
| 75 | + - MONGO_DATA_DIR=/data/db |
| 76 | + - MONGO_LOG_DIR=/dev/null |
| 77 | + volumes: |
| 78 | + - "./db:/data/db" |
| 79 | + ports: |
| 80 | + - "27017:27017" |
| 81 | + command: "mongod --smallfiles --logpath=/dev/null" |
| 82 | + networks: |
| 83 | + - cocoannotator |
0 commit comments