# Copyright (c) 2018-2018 # Data Intensive Applications and Systems Labaratory (DIAS) # Ecole Polytechnique Federale de Lausanne # # All Rights Reserved. # # Permission to use, copy, modify and distribute this software and its # documentation is hereby granted, provided that both the copyright notice # and this permission notice appear in all copies of the software, derivative # works or modified versions, and any portions thereof, and that both notices # appear in supporting documentation. # # This code is distributed in the hope that it will be useful, but WITHOUT ANY # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR # A PARTICULAR PURPOSE. THE AUTHORS AND ECOLE POLYTECHNIQUE FEDERALE DE LAUSANNE # DISCLAIM ANY LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE # USE OF THIS SOFTWARE. version: '3' networks: local: services: db: image: ${DB_IMAGE}${DB_VERSION} environment: POSTGRES_USER: ${DB_USER_ADMIN} POSTGRES_PASSWORD: ${DB_PASSWORD_ADMIN} POSTGRES_DB: ${DB_NAME2} restart: unless-stopped # Used only by docker-compose deploy: # Used only by docker stack restart_policy: condition: on-failure delay: 5s max_attempts: 3 window: 120s volumes: - ${DB_DATA}:/data:rw - ${DB_DATASETS}:/datasets:ro networks: - local ports: # Expose PostgresRAW-UI only when needed - "${DB_PORT}:5432" db-ui: image: ${DB_UI_IMAGE}${DB_UI_VERSION} environment: POSTGRES_HOST: db POSTGRES_PORT: 5432 POSTGRES_USER: ${DB_USER_ADMIN} POSTGRES_PASSWORD: ${DB_PASSWORD_ADMIN} POSTGRES_DB: ${DB_NAME2} LOCAL_DATA_SOURCE: ${DB_UI_LOCAL_SOURCES} FED_DATA_SOURCE: ${DB_UI_FEDERATION_SOURCES} depends_on: - db restart: unless-stopped # Used only by docker-compose deploy: # Used only by docker stack restart_policy: condition: on-failure delay: 5s max_attempts: 3 window: 120s volumes: - ${DB_DATA}:/data:rw - ${DB_DATASETS}:/datasets:ro networks: - local # ports: # Expose PostgresRAW-UI only when needed # - "${DB_UI_PORT}:5555"