-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yaml
197 lines (181 loc) · 4.82 KB
/
docker-compose.yaml
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
version: '2'
services:
uploadamqp:
image: rabbitmq:latest
uploaddjango:
container_name: uploader_django
build:
context: .
dockerfile: Dockerfile.django
volumes:
- /Users/d3k857/Downloads/srv:/srv
- ./UploadServer/static:/static
- ./:/src
links:
- uploadamqp
- policyserver
- metadataserver
- ingestserver
environment:
AMQP_PORT_5672_TCP_ADDR: uploadamqp
AMQP_PORT_5672_TCP_PORT: 5672
ports:
- 8000:8000
proxydjango:
container_name: uploader_proxy
image: nginx:alpine
links:
- uploaddjango:uploader
- uploadstatus:statusbackend
volumes:
- ./proxy_config/proxy_conf:/etc/nginx/conf.d
- ./UploadServer/static:/static
- ./resources:/resources
ports:
- 80:80
# uploadcelery:
# build:
# context: .
# dockerfile: Dockerfile.celery
# volumes:
# - /srv:/srv
# links:
# - uploadamqp
# environment:
# AMQP_PORT_5672_TCP_ADDR: uploadamqp
# AMQP_PORT_5672_TCP_PORT: 5672
# metadataserver:
# container_name: uploader_metadataserver
# image: cagataygurturk/docker-ssh-tunnel
# volumes:
# - $HOME/.ssh/tunnel-config:/root/.ssh/config:ro
# - $HOME/.ssh/tunnel_id_ecdsa:/root/.ssh/tunnel_id_ecdsa:ro
# ports:
# - 8121:8121
# environment:
# ELASTICDB_PORT: tcp://elasticdb:9200
# TUNNEL_HOST: mysql-tunnel
# REMOTE_HOST: core-0-dev.my.emsl.pnl.gov
# LOCAL_PORT: 8121
# REMOTE_PORT: 7121
#
# policyserver:
# container_name: uploader_policyserver
# image: cagataygurturk/docker-ssh-tunnel
# volumes:
# - $HOME/.ssh/tunnel-config:/root/.ssh/config:ro
# - $HOME/.ssh/tunnel_id_ecdsa:/root/.ssh/tunnel_id_ecdsa:ro
# ports:
# - 8181:8181
# environment:
# # ELASTICDB_PORT: tcp://elasticdb:9200
# TUNNEL_HOST: mysql-tunnel
# REMOTE_HOST: in-0-dev.my.emsl.pnl.gov
# LOCAL_PORT: 8181
# REMOTE_PORT: 8181
policyserver:
# image: pacifica/policy
build:
context: ../policy
container_name: uploader_policyserver
links:
- metadataserver:metadata
ports:
- 8181:8181
environment:
METADATA_PORT: tcp://metadata:8121
elasticdb:
build:
context: .
dockerfile: Dockerfile.elastic
container_name: uploader_elasticdb
ports:
- 9200:9200
- 9300:9300
environment:
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
metadatadb:
image: postgres
container_name: uploader_metadatadb
environment:
POSTGRES_PASSWORD: password
POSTGRES_DB: pacifica_metadata
POSTGRES_USER: metadata
ports:
- 5432:5432
metadataserver:
# image: pacifica/metadata
build:
context: ../metadata
container_name: uploader_metadataserver
links:
- metadatadb:postgres
- elasticdb:elasticdb
ports:
- 8121:8121
environment:
ELASTICDB_PORT: tcp://elasticdb:9200
POSTGRES_ENV_POSTGRES_DB: pacifica_metadata
POSTGRES_ENV_POSTGRES_USER: metadata
POSTGRES_PORT_5432_TCP_ADDR: postgres
POSTGRES_PORT_5432_TCP_PORT: 5432
POSTGRES_ENV_POSTGRES_PASSWORD: password
uploadstatus:
container_name: uploader_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
uploadstatusdb:
container_name: uploader_uploadstatusdb
image: postgres
environment:
POSTGRES_PASSWORD: pacifica
POSTGRES_DB: pacifica_upload_status
POSTGRES_USER: pacifica
ports:
- 45432:5432
ingestserver:
container_name: uploader_ingest
image: nginx:alpine
volumes:
- ../reporting/ingest_data:/usr/share/nginx/html
- ../reporting/auth/ingest_conf:/etc/nginx/conf.d
ports:
- 9080:80
archiveinterface:
image: pacifica/archiveinterface
container_name: uploader_archiveinterface
ports:
- 8080:8080
volumes:
# - /srv:/srv
- /Users/d3k857/Downloads/srv:/srv