I gang

write docker-compose from a docker file

Need to write a docker-composer to replace the following file.

# Prompt

while true; do

echo "This will kill the existing container (if it exists) and create a new one."

read -p "Proceed? [y/n]: " yn

case $yn in

[Yy]* ) break;;

[Nn]* ) exit;;

* ) echo "Please answer 'y' or 'n'.";;

esac

done

# Pull latest

docker pull [login to view URL]:latest

# Stop container

docker kill web-app

# Remove the container so we can re-use the name

docker rm web-app

# Run the container with latest version

docker run \

--name web-app \

--restart=always \

-d \

-p 37000:80 \

-e VIRTUAL_HOST=[login to view URL] \

-e ENV_CONFIG="production" \

[login to view URL]:latest

~

also need to limit docker size with

logging:

driver: "json-file"

options:

max-file: "5" # number of files or file count

max-size: "10m" # file size

Evner: Docker, Docker Compose

Om klienten:
( 43 bedømmelser ) Louisville, United States

Projekt ID: #33749671

Tildelt til:

keanpaderes

Hi. I have extensive experience in setting up docker projects. I also see that you're using a GCP Container Image and I have previous experience with the platform. I can help you with your problem right away and use th Flere

$30 USD in 2 dage
(0 bedømmelser)
0.0

3 freelancere byder i gennemsnit $37 timen for dette job

sitawab

Experienced in docker & compose. Kindly clarify what challenge you are facing with this. Also is the image in a private repository?

$50 USD på 1 dag
(1 bedømmelse)
2.8
gradeheroclub

Hello, First receive warm greetings, and hoping you are good, i welcome you to the home of Amazing services and quality. I have carefully gone through your project titled ((write docker-compose from a docker file)) I' Flere

$30 USD in 2 dage
(0 bedømmelser)
0.0