generated from linkml/linkml-template
-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.yml
50 lines (48 loc) · 1.97 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
version: '3'
services:
app:
# Use the container image built from the specified Dockerfile;
# as opposed to a container image available on DockerHub.
build:
context: .
dockerfile: Dockerfile
restart: unless-stopped
ports:
# Map a host port (by default, 8000, but it can be overridden via an
# environment variable) to port 8000 of the container; the latter being
# the port on which the MkDocs dev-server listens by default.
#
# The environment variable can be specified either via an `.env` file,
# or by defining it when invoking `docker compose`, like this:
# ```
# DOCS_PORT=1234 docker compose up
# ```
#
- "${DOCS_PORT:-8000}:8000"
volumes:
# Mount the root directory of the repository, at `/nmdc-schema` within the container.
#
# Note: This will overwrite any `/nmdc-schema` directory that might have been created
# while building the container (i.e. while processing the `Dockerfile`).
#
- "./:/nmdc-schema"
fuseki:
# Use the container image at: https://hub.docker.com/r/stain/jena-fuseki
image: stain/jena-fuseki
restart: unless-stopped
ports:
# Map a host port (by default, 3030, but it can be overridden via an
# environment variable) to port 3030 of the container; the latter being
# the port on which the Fuseki web server listens by default.
- "${FUSEKI_PORT:-3030}:3030"
volumes:
# Mount the `./local/fuseki-data` directory on the host, at `/fuseki` within the container.
#
# Note: Since `./local/fuseki-data` is within the repository file tree, and the entire
# repository file tree is mounted within the `app` container, the `app` container
# can share data with the `fuseki` container by putting files into this directory.
#
- "./local/fuseki-data:/fuseki"
environment:
# Administrator credentials: admin/password
- ADMIN_PASSWORD=password