-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
222 lines (212 loc) · 6.69 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
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
version: '2'
services:
# Nginx proxy pass frontends
proxyfrontend:
container_name: status_proxyfrontend
build:
context: .
dockerfile: Dockerfile.archiveproxy
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
# archiveproxy:
# container_name: status_archiveproxy
# build:
# context: .
# dockerfile: Dockerfile.archiveproxy
# links:
# - proxyserver:proxyserver
# - archiveinterface:archiveinterface
# ports:
# - 8123:8123
# environment:
# PROXY_ADDR: proxyserver
# PROXY_PORT: 8180
# FILE_REDIRECT_ADDR: archiveinterface
# FILE_REDIRECT_PORT: 8080
# Upload status
uploadstatus:
container_name: status_uploadstatus
build:
context: .
dockerfile: Dockerfile.dev
volumes:
- ./:/var/www/html
links:
- metadataserver:metadata
- policyserver:policy
# - cartserver:cart
- uploadstatusdb:cartdb
# - archiveinterface:archivei
environment:
METADATA_PORT: tcp://metadata:8121
POLICY_PORT: tcp://policy:8181
ARCHIVE_PORT: tcp://archivei:8080
CART_PORT: tcp://cart:8081
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
XDEBUG_CONFIG: remote_host=docker.for.mac.localhost
ports:
- 9000:9000
uploadstatusdb:
container_name: status_uploadstatusdb
image: postgres
environment:
POSTGRES_PASSWORD: pacifica
POSTGRES_DB: pacifica_upload_status
POSTGRES_USER: pacifica
ports:
- 55432:5432
# Metadata and policy servers
metadataserver:
build:
context: ../metadata
dockerfile: Dockerfile
container_name: status_metadataserver
links:
- metadatadb:postgres
- elasticdb
ports:
- 8121:8121
environment:
ELASTICDB_PORT: tcp://elasticdb:9200
POSTGRES_ENV_POSTGRES_DB: pacifica_metadata
POSTGRES_ENV_POSTGRES_USER: pacifica
POSTGRES_PORT_5432_TCP_ADDR: postgres
POSTGRES_PORT_5432_TCP_PORT: 5432
POSTGRES_ENV_POSTGRES_PASSWORD: pacifica
policyserver:
build:
context: ../policy
dockerfile: Dockerfile
container_name: status_policyserver
restart: unless-stopped
links:
- metadataserver:metadata
ports:
- 8181:8181
environment:
METADATA_PORT: tcp://metadata:8121
metadatadb:
image: postgres
container_name: status_metadatadb
environment:
POSTGRES_PASSWORD: pacifica
POSTGRES_DB: pacifica_metadata
POSTGRES_USER: pacifica
ports:
- 5432:5432
elasticdb:
image: elasticsearch:2.4
container_name: status_elasticdb
ports:
- 9200:9200
# Archive interface and file downloading
# archiveinterface:
# image: pacifica/archiveinterface
# container_name: archiveinterface
# ports:
# - 8080:8080
# volumes:
# # - /srv:/srv
# - /Users/d3k857/Downloads/srv/Data:/srv
#
# proxyserver:
# container_name: 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
# Cart serving bits
# cartserver:
# container_name: cartserver
# image: pacifica/cartd-frontend
# ports:
# - 8081:8081
# links:
# - cartrabbit:amqp
# - cartmysql:mysql
# - archiveinterface:archivei
# volumes:
# # - /shared:/shared
# - /Users/d3k857/Downloads/shared:/shared
# environment:
# VOLUME_PATH: /shared/
# LRU_BUFFER_TIME: 0
# ARCHIVEI_PORT_8080_TCP_ADDR: archivei
# ARCHIVEI_PORT_8080_TCP_PORT: 8080
# AMQP_PORT_5672_TCP_ADDR: amqp
# AMQP_PORT_5672_TCP_PORT: 5672
# MYSQL_PORT_3306_TCP_ADDR: mysql
# MYSQL_PORT_3306_TCP_PORT: 3306
# MYSQL_ENV_MYSQL_DATABASE: pacifica_cart
# MYSQL_ENV_MYSQL_USER: cartd
# MYSQL_ENV_MYSQL_PASSWORD: cartd
#
# cartworkers:
# container_name: cartworkers
# image: pacifica/cartd-backend
# links:
# - cartrabbit:amqp
# - cartmysql:mysql
# - archiveinterface:archivei
# volumes:
# # - /shared:/shared
# - /Users/d3k857/Downloads/shared:/shared
#
# environment:
# VOLUME_PATH: /shared/
# LRU_BUFFER_TIME: 0
# ARCHIVEI_PORT_8080_TCP_ADDR: archivei
# ARCHIVEI_PORT_8080_TCP_PORT: 8080
# AMQP_PORT_5672_TCP_ADDR: amqp
# AMQP_PORT_5672_TCP_PORT: 5672
# MYSQL_PORT_3306_TCP_ADDR: mysql
# MYSQL_PORT_3306_TCP_PORT: 3306
# MYSQL_ENV_MYSQL_DATABASE: pacifica_cart
# MYSQL_ENV_MYSQL_USER: cartd
# MYSQL_ENV_MYSQL_PASSWORD: cartd
#
# cartrabbit:
# image: rabbitmq
# container_name: cartrabbit
# ports:
# - 5672:5672
#
# cartmysql:
# image: mysql
# container_name: cartmysql
# environment:
# MYSQL_ROOT_PASSWORD: root
# MYSQL_DATABASE: pacifica_cart
# MYSQL_USER: cartd
# MYSQL_PASSWORD: cartd
# ports:
# - 3306:3306