diff --git a/docker/docker_refresh.sh b/docker/docker_refresh.sh deleted file mode 100644 index 354f11b..0000000 --- a/docker/docker_refresh.sh +++ /dev/null @@ -1,18 +0,0 @@ -# Refresh Docker container running ai4-papi ([!] run with `sudo`) -# This script was what we ran before deploying with Docker Compose - -cd /home/ubuntu/ai4-papi - -echo "$(tput setaf 3)** Pull latest changes from Github **$(tput sgr0)" -git pull - -echo "$(tput setaf 3)** Build new image **$(tput sgr0)" -docker build -t ai4-papi /home/ubuntu/ai4-papi/docker - -echo "$(tput setaf 3)** Stop old container **$(tput sgr0)" -docker stop $(sudo docker ps | awk '/ai4papi/ { print $1 }') || true - -echo "$(tput setaf 3)** Start new container **$(tput sgr0)" -docker run -d -v /home/ubuntu/nomad-certs:/home/nomad-certs -v /home/ubuntu/letsencrypt:/home/letsencrypt -p 443:443 ai4-papi - -cd /home/ubuntu diff --git a/docker/old-docker-compose.yml b/docker/old-docker-compose.yml deleted file mode 100644 index a6d3e50..0000000 --- a/docker/old-docker-compose.yml +++ /dev/null @@ -1,64 +0,0 @@ -version: "3.9" - -services: - - reverse-proxy: - image: "jwilder/nginx-proxy:latest" - container_name: "reverse-proxy" - volumes: - - "/home/ubuntu/reverse-proxy/html:/usr/share/nginx/html" - - "/home/ubuntu/reverse-proxy/dhparam:/etc/nginx/dhparam" - - "/home/ubuntu/reverse-proxy/vhost:/etc/nginx/vhost.d" - - "/home/ubuntu/reverse-proxy/certs:/etc/nginx/certs" - - "/home/ubuntu/reverse-proxy/config:/etc/nginx/conf.d" - - "/run/docker.sock:/tmp/docker.sock:ro" - restart: "always" - network_mode: bridge - ports: - - "80:80" - - "443:443" - - letsencrypt: - image: "jrcs/letsencrypt-nginx-proxy-companion:latest" - container_name: "letsencrypt-helper" - volumes: - - "/home/ubuntu/reverse-proxy/html:/usr/share/nginx/html" - - "/home/ubuntu/reverse-proxy/dhparam:/etc/nginx/dhparam" - - "/home/ubuntu/reverse-proxy/vhost:/etc/nginx/vhost.d" - - "/home/ubuntu/reverse-proxy/certs:/etc/nginx/certs" - - "/run/docker.sock:/var/run/docker.sock:ro" - environment: - NGINX_PROXY_CONTAINER: "reverse-proxy" - DEFAULT_EMAIL: "iheredia@ifca.unican.es" - restart: "always" - depends_on: - - "reverse-proxy" - network_mode: bridge - - ai4-papi-prod: - image: "ignacioheredia/ai4-papi:prod" - restart: always - environment: - - VIRTUAL_HOST=api.cloud.ai4eosc.eu - - LETSENCRYPT_HOST=api.cloud.ai4eosc.eu - - NOMAD_ADDR=https://193.146.75.221:4646 - volumes: - - /home/ubuntu/nomad-certs/nomad-prod:/home/nomad-certs - network_mode: bridge - ports: - - 8080:80 - - ai4-papi-dev: - # Right now dev is pointing to same services as prod. - # Will change in the future. - image: "ignacioheredia/ai4-papi:prod" - restart: always - environment: - - VIRTUAL_HOST=api.dev.ai4eosc.eu - - LETSENCRYPT_HOST=api.dev.ai4eosc.eu - - NOMAD_ADDR=https://193.146.75.221:4646 - volumes: - - /home/ubuntu/nomad-certs/nomad-prod:/home/nomad-certs - network_mode: bridge - ports: - - 8081:80