1. docker-compose
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
version: '3' services: schat_v5_test: image: sgmgmtregistry.azurecr.io/schat_v5_test:95 command: > bash -c "for i in `seq 1 30`; do node main.js && s=$$? && break || s=$$?; echo \"Tried $i times. Waiting 5 secs...\"; sleep 5; done; (exit $s)" restart: unless-stopped networks: - schat_v5_test_network volumes: - /mnt/sghdevschatfilesa:/mnt/sghdevschatfilesa environment: - PORT=3000 - ROOT_URL=http://127.0.0.1:3000 - MONGO_OPLOG_URL=mongodb://admin:[email protected]:27017/local?authSource=admin&directConnection=true - INSTANCE_IP=10.240.13.38 - TOOL_NODE_FLAGS="--max-old-space-size=2048" - DISABLE_PRESENCE_MONITOR=false - DISABLE_MESSAGE_PARSER=true ports: - 3000:3000 networks: schat_v5_test_network: driver: bridge |