version: "3" 
services:

        postgres:
             build:
                context: .
                dockerfile: Dockerfile.psql
             image: eurac_psql
             restart: always
             environment:
               POSTGRES_PASSWORD: mysecretpassword
        nginx:
             build:
                context: .
                dockerfile: Dockerfile.nginx
             image: eurac_nginx
             volumes:
               - ../volumes/shib-certs:/opt/shibboleth-sp-fastcgi/etc/shibboleth/certs
               - ../volumes/ssl-certs:/etc/ssl/lindat
             hostname: clarin-dev.eurac.edu
             restart: always
             ports:
               - "80:80"
               - "443:443"
        handle:
             build:
                context: .
                dockerfile: Dockerfile.handle
             image: eurac_handle
             restart: always
             ports:
               - "8000:8000"
               - "2641:2641"
        dspace:
             build:
                context: .
                dockerfile: Dockerfile.dspace
             image: eurac_dspace
             depends_on:
               - postgres
             restart: always
             ports:
               - "8080:8080"
