version: '3.8'
services:
  onboarding-service:
    image: "641866833894.dkr.ecr.eu-central-1.amazonaws.com/onboarding-service:${hash}"
    ports:
      - 5000:5000
    volumes:
      - /home/webapp/keystore.p12:/keystore.p12
      - /home/webapp/truststore.jks:/truststore.jks
    env_file:
      - .env

  nginx:
    image: nginx:latest
    volumes:
      - /etc/nginx/nginx.conf:/etc/nginx/nginx.conf
      - /tmp/fullchain.pem:/tmp/fullchain.pem
      - /tmp/privkey.pem:/tmp/privkey.pem
      - /tmp/id.crt:/tmp/id.crt
      - /tmp/dhparam.pem:/tmp/dhparam.pem
      - /etc/nginx/conf.d/01_ssl_proxy.conf:/etc/nginx/conf.d/01_ssl_proxy.conf
    ports:
      - 80:80
      - 443:443

version: '3.8'
services:
  onboarding-service:
    image: "641866833894.dkr.ecr.eu-central-1.amazonaws.com/onboarding-service:${hash}"
    ports:
      - 5000:5000
    volumes:
      - /home/webapp/keystore.p12:/keystore.p12
      - /home/webapp/truststore.jks:/truststore.jks
    env_file:
      - .env

  nginx:
    image: public.ecr.aws/nginx/nginx:latest
    volumes:
      - /etc/nginx/nginx.conf:/etc/nginx/nginx.conf
      - /tmp/fullchain.pem:/tmp/fullchain.pem
      - /tmp/privkey.pem:/tmp/privkey.pem
      - /tmp/id.crt:/tmp/id.crt
      - /tmp/dhparam.pem:/tmp/dhparam.pem
      - /etc/nginx/conf.d/01_ssl_proxy.conf:/etc/nginx/conf.d/01_ssl_proxy.conf
    ports:
      - 80:80
      - 443:443

Move from from docker hub to amazon elastic container registry
Move from from docker hub to amazon elastic container registry
