This repository has been archived by the owner on Dec 15, 2019. It is now read-only.
forked from openphacts/ops-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
163 lines (145 loc) · 3.76 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
# Open PHACTS platform
# Docker Compose configuration
# https://docs.docker.com/compose/yml/
#
# Each entry below defines a docker container,
# some of which expose ports, e.g. this exposes
# the internal port 80 as port 3002 to the world:
#
# ports:
# - "3002:80"
#
# To change the exposed port, change the number on the left
#
# Data is stored in Docker volumes, which by default would be
# managed by Docker, e.g. created within /var/lib/docker
# with a UUID.
#
# To use a different folder/partition, e.g. for backup purposes,
# speed or disk requirements, modify "volumes:" for the
# *data containers further down.
#
## NOTE: Be careful about indentation!
version: '2'
services:
explorer:
container_name: ops-explorer
image: openphacts/explorer2
ports:
- "3001:3000"
links:
- api
environment:
# CHANGE: "localhost" to fully qualified hostname
# Do NOT include a trailing /
- API_URL=http://localhost:3002
#restart: always
api:
container_name: ops-api
image: openphacts/ops-linkeddataapi
ports:
# Remember to match port in API_URL below
- "3002:80"
links:
- ims
- memcached
- virtuoso:sparql
#environment:
# - CRS=https://ops.rsc.org/api/v1/
# - CONCEPTWIKI=http://www.conceptwiki.org/web-ws/concept
#restart: always
# SPARQL server
virtuoso:
container_name: ops-virtuoso
#image: stain/virtuoso
build: virtuoso-ops
ports:
- "3003:8890"
volumes_from:
- virtuosodata
#restart: always
virtuosodata:
container_name: ops-virtuosodata
image: busybox
volumes:
# To specify alternative data folder, use instad:
# - /media/big-SSD/virtuoso:/virtuoso
- /virtuoso
container_name: ops-virtuosodata
mysqldata:
container_name: ops-mysqldata
image: busybox
volumes:
# To specify alternative data folder, use instead:
# - /media/big-SSD/mysql:/var/lib/mysql
- /var/lib/mysql
mysql:
container_name: ops-mysql
image: mysql:5.6
volumes_from:
- mysqldata
environment:
- MYSQL_ROOT_PASSWORD=uCie0ahgah
- MYSQL_DATABASE=ims
- MYSQL_USER=ims
- MYSQL_PASSWORD=ims
#restart: always
ims:
container_name: ops-ims
image: openphacts/identitymappingservice
ports:
- "3004:8080"
links:
- mysql
#restart: always
memcached:
container_name: ops-memcached
image: memcached
#restart: always
mysqlstaging:
container_name: ops-mysqlstaging
#build: mysqlstaging
image: openphacts/identitymappingservice-staging
links:
- mysql
#
# Populate RDF from virtuoso backup download
virtuosostaging:
container_name: ops-virtuosostaging
build: virtuosodata-frombackup
volumes_from:
- virtuosodata
#
# To customize RDF dataloading, comment OUT the above 'virtuosostaging' block,
# uncomment the below block, and then run
# docker-compose up -d virtuosostagingrdf
#
## BEGIN custom loading
### Download from data.openphacts.org
#openphactsrdf:
# container_name: ops-openphactsrdf
# build: openphacts-rdf
# volumes:
# # To specify alternative data folder, use instad:
# # - /media/big-SSD/download:/download
# # - /media/big-SSD/staging:/staging
# - /download
# - /staging
# # /download
#
### Load into virtuoso
#virtuosostagingrdf:
# container_name: ops-virtuosostagingrdf
# build: virtuosodata-fromrdf
# volumes_from:
# - virtuosodata
# - openphactsrdf
### END custom loading
## Future services
#elasticsearch:
# container_name: ops-elasticsearch
# image: elasticsearch
## TODO: Data loading
#ops-search:
# container_name: ops-search
# image: openphacts/ops-search