forked from EMSL-MSC/pacifica-reporting
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
177 lines (166 loc) · 4.42 KB
/
docker-compose.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
version: '3.3'
services:
# Nginx proxy pass frontends
proxyfrontend:
container_name: reporting_proxyfrontend
build:
context: .
dockerfile: Dockerfile.proxy
links:
- uploadstatus:statusbackend
- reporting:reportingbackend
- archiveinterface:archiveinterface
- proxyserver:proxyserver
ports:
- 80:80
- 443:443
environment:
UPLOAD_STATUS_ADDR: statusbackend
UPLOAD_STATUS_PORT: 80
REPORTING_ADDR: reportingbackend
REPORTING_PORT: 80
FILE_REDIRECT_ADDR: archiveinterface
FILE_REDIRECT_PORT: 8080
PROXY_ADDR: proxyserver
PROXY_PORT: 8180
ingestserver:
container_name: reporting_ingest
image: nginx:alpine
volumes:
- ./ingest_data:/usr/share/nginx/html
- ./auth/ingest_conf:/etc/nginx/conf.d
ports:
- 9080:80
archiveinterface:
image: pacifica/archiveinterface
container_name: reporting_archiveinterface
ports:
- 8080:8080
volumes:
# - /srv:/srv
- /Users/d3k857/Downloads/srv:/srv
proxyserver:
container_name: reporting_proxyserver
build:
context: ../proxy
links:
- metadataserver:metadata
- archiveinterface:archiveinterface
ports:
- 8180:8180
environment:
NGINX_ACCEL: 'True'
METADATA_PORT: tcp://metadata:8121
ARCHIVEI_PORT: tcp://archiveinterface:8080
# Reporting services
reporting:
container_name: reporting
build:
context: .
dockerfile: Dockerfile-php7
volumes:
- ./:/var/www/html
links:
- metadataserver:metadata
- policyserver:policy
- reportingprefsdb:prefsdb
environment:
METADATA_PORT: tcp://metadata:8121
POLICY_PORT: tcp://policy:8181
PREFSDB_ADDR: prefsdb
PREFSDB_PORT: 5432
PREFSDB_USER: pacifica
PREFSDB_PASSWORD: pacifica
PREFSDB_DB_NAME: pacifica_reporting
SITE_NAME: reporting.local
EUSDB_ADDR: mysql
EUSDB_PORT: 3306
EUSDB_NAME: ERSUPPLAY
EUSDB_USER: ersup_play
EUSDB_PASSWORD: play
uploadstatus:
container_name: reporting_uploadstatus
build:
context: ../upload-status
dockerfile: Dockerfile.dev
volumes:
- ../upload-status/:/var/www/html
links:
- metadataserver:metadata
- policyserver:policy
- uploadstatusdb:cartdb
- archiveinterface:archivei
- ingestserver:ingest
environment:
METADATA_PORT: tcp://metadata:8121
POLICY_PORT: tcp://policy:8181
ARCHIVE_PORT: tcp://archivei:8080
CART_PORT: tcp://cart:8081
INGESTER_PORT: tcp://ingest
CARTDB_ADDR: cartdb
CARTDB_PORT: 5432
CARTDB_USER: pacifica
CARTDB_PASSWORD: pacifica
CARTDB_DB_NAME: pacifica_upload_status
CARTDB_DBDRIVER: postgre
CART_DOWNLOAD_PORT: tcp://cartng.emsl.pnl.gov:8443
FILE_DOWNLOAD_PORT: tcp://filesng.emsl.pnl.gov:8443
SITE_NAME: status.local
ports:
- 9001:9001
uploadstatusdb:
container_name: reporting_uploadstatusdb
image: postgres:11
environment:
POSTGRES_PASSWORD: pacifica
POSTGRES_DB: pacifica_upload_status
POSTGRES_USER: pacifica
ports:
- 45432:5432
# Metadata and policy servers
policyserver:
container_name: reporting_policyserver
# image: pacifica/policy
build:
context: ../policy
links:
- metadataserver:metadata
ports:
- 8181:8181
environment:
METADATA_URL: http://metadata:8121
ADMIN_GROUP_ID: 1
ELASTIC_ENDPOINT: http://elasticdb:9200
ADMIN_USER_ID: 10
STATUS_URL: http://metadata:8121/groups
metadatadb:
image: postgres:11
container_name: reporting_metadatadb
environment:
POSTGRES_PASSWORD: pacifica
POSTGRES_DB: pacifica_metadata
POSTGRES_USER: pacifica
ports:
- 5432:5432
metadataserver:
# image: pacifica/metadata
build:
context: ../metadata
dockerfile: Dockerfile
container_name: reporting_metadataserver
links:
- metadatadb:postgres
ports:
- 8121:8121
environment:
NOTIFICATIONS_URL: http://notifyfrontend:8070/receive
PEEWEE_DATABASE_URL: postgres://pacifica:pacifica@metadatadb/pacifica_metadata
reportingprefsdb:
container_name: reporting_prefsdb
image: postgres:11
environment:
POSTGRES_PASSWORD: pacifica
POSTGRES_DB: pacifica_reporting
POSTGRES_USER: pacifica
ports:
- 25432:5432