-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-db.yml
71 lines (67 loc) · 2.25 KB
/
docker-compose-db.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# 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"