write a docker-compose based on docker
Budget: $10 – $30 USD
here is the docker file. need to re write to docker-compose
# Pull latest
docker pull us.gcr.io/spectrum-tracking/web-app: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=app.spectrumtracking.com \
-e ENV_CONFIG="production" \
us.gcr.io/spectrum-tracking/web-app:latest
# Pull latest
docker pull us.gcr.io/spectrum-tracking/web-app: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=app.spectrumtracking.com \
-e ENV_CONFIG="production" \
us.gcr.io/spectrum-tracking/web-app:latest