You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
510 B
Bash
15 lines
510 B
Bash
2 years ago
|
#!/bin/bash
|
||
|
|
||
|
# build the flask container
|
||
|
docker build -t studX/foodtrucks-web ./
|
||
|
|
||
|
# create the network
|
||
|
docker network create foodtrucks-network
|
||
|
|
||
|
# start the ES container
|
||
|
docker run -d --net foodtrucks-network --name elastic elasticsearch:8.4.3
|
||
|
|
||
|
# start the flask app container
|
||
|
# point to elastic host: https://elastic:9200 user: elastic password: v7SLsbtXticPLADei5vS
|
||
|
docker run -d -p 80:5000 --net foodtrucks-network --name foodtrucks-web studX/foodtrucks-web https elastic 9200 elastic v7SLsbtXticPLADei5vS
|