云计算课程实验
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.

13 lines
456 B

преди 4 години
  1. #!/bin/bash
  2. # build the flask container
  3. docker build -t prakhar1989/foodtrucks-web .
  4. # create the network
  5. docker network create foodtrucks-net
  6. # start the ES container
  7. docker run -d --name es --net foodtrucks-net -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:6.3.2
  8. # start the flask app container
  9. docker run -d --net foodtrucks-net -p 5000:5000 --name foodtrucks-web prakhar1989/foodtrucks-web