version: '3'

services:

  ska:
    container_name: ska
    image: harbor.srcdev.skao.int/soda/visivo-vlkb-soda:1.7
    user: 5000:5000
    ports:
      - 18019:8080
    environment:
      - ACCESS_CONTEXT_ROOT=ska#datasets
    volumes:
      - /srv/ska/surveys:/srv/surveys:ro
    restart: always


  ska-tls:
    container_name: ska-tls
    image: harbor.srcdev.skao.int/soda/visivo-vlkb-soda:1.7
    user: 5000:5000
    ports:
      - 18025:8443
    environment:
      - ACCESS_CONTEXT_ROOT=ska#datasets
      - KEYSTORE_ALIAS=tomcat
    volumes:
      - /srv/ska/surveys:/srv/surveys:ro
      - ./security/keystore.jks:/etc/pki/tls/keystore.jks:ro
      - ./security/keystore.pwd:/etc/pki/tls/keystore.pwd:ro
    restart: always


  ska-tls-iam:
    container_name: ska-tls-iam
    image: harbor.srcdev.skao.int/soda/visivo-vlkb-soda:1.7
    user: 5000:5000
    ports:
      - 18025:8443
    environment:
      - ACCESS_CONTEXT_ROOT=ska#datasets
      - KEYSTORE_ALIAS=tomcat
      - SKAIAM_INTROSPECT=https://iam-escape.cloud.cnaf.infn.it/introspect
      - SKAIAM_CLIENT=02cc260f-9837-4907-b2cb-a1a2d764fb15
      - SKAIAM_PASSWORD=AJMi3qrB6AHRp_6y55tEwU-IpJ8uZ6X4QXeQ3W4la6dc-BlkzAY1OQpAE9hb1W7-VfYl4208FUtjE2Cl3hUYLkQ
    volumes:
      - /srv/ska/surveys:/srv/surveys:ro
      - ./security/keystore.jks:/etc/pki/tls/keystore.jks:ro
      - ./security/keystore.pwd:/etc/pki/tls/keystore.pwd:ro
    restart: always


