Skip to content

Commit 2873b85

Browse files
authored
Merge pull request #194 from meaningfy-ws/feature/TED-558
fuseki and sftp
2 parents 0b4e10d + 91cf8d4 commit 2873b85

4 files changed

Lines changed: 97 additions & 0 deletions

File tree

Makefile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,24 @@ stop-allegro-graph:
113113
@ echo -e "$(BUILD_PRINT)Stopping Allegro-Graph services $(END_BUILD_PRINT)"
114114
@ docker-compose -p ${ENVIRONMENT} --file ./infra/allegro-graph/docker-compose.yml --env-file ${ENV_FILE} down
115115

116+
# ------------------------
117+
start-fuseki: build-externals
118+
@ echo -e "$(BUILD_PRINT)Starting Fuseki services $(END_BUILD_PRINT)"
119+
@ docker-compose -p ${ENVIRONMENT} --file ./infra/fuseki/docker-compose.yml --env-file ${ENV_FILE} up -d
120+
121+
stop-fuseki:
122+
@ echo -e "$(BUILD_PRINT)Stopping Fuseki services $(END_BUILD_PRINT)"
123+
@ docker-compose -p ${ENVIRONMENT} --file ./infra/fuseki/docker-compose.yml --env-file ${ENV_FILE} down
124+
125+
# ------------------------
126+
start-sftp: build-externals
127+
@ echo -e "$(BUILD_PRINT)Starting SFTP services $(END_BUILD_PRINT)"
128+
@ docker-compose -p ${ENVIRONMENT} --file ./infra/sftp/docker-compose.yml --env-file ${ENV_FILE} up -d
129+
130+
stop-sftp:
131+
@ echo -e "$(BUILD_PRINT)Stopping SFTP services $(END_BUILD_PRINT)"
132+
@ docker-compose -p ${ENVIRONMENT} --file ./infra/sftp/docker-compose.yml --env-file ${ENV_FILE} down
133+
116134
# ------------------------
117135
build-elasticsearch: build-externals
118136
@ echo -e "$(BUILD_PRINT) Build Elasticsearch services $(END_BUILD_PRINT)"

infra/fuseki/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
FROM stain/jena-fuseki:4.0.0
2+
3+
RUN apt-get update; \
4+
apt-get install -y --no-install-recommends procps

infra/fuseki/docker-compose.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
version: '3'
2+
services:
3+
fuseki:
4+
container_name: fuseki
5+
build:
6+
context: .
7+
dockerfile: Dockerfile
8+
environment:
9+
- ADMIN_PASSWORD=${FUSEKI_ADMIN_PASSWORD}
10+
- FUSEKI_DATASET_1=mydataset
11+
volumes:
12+
- fuseki-data:/fuseki/
13+
networks:
14+
- fuseki-net
15+
- proxy-net
16+
labels:
17+
#### Labels define the behavior and rules of the traefik proxy for this container ####
18+
- "traefik.enable=true" # <== Enable traefik to proxy this container
19+
- "traefik.http.routers.${ENVIRONMENT}-fuseki.rule=Host(`fuseki.${SUBDOMAIN}${DOMAIN}`)" # <== Your Domain Name goes here for the http rule
20+
- "traefik.http.routers.${ENVIRONMENT}-fuseki.entrypoints=web" # <== Defining the entrypoint for http, **ref: line 30
21+
- "traefik.http.routers.${ENVIRONMENT}-fuseki.middlewares=redirect@file" # <== This is a middleware to redirect to https
22+
- "traefik.http.routers.${ENVIRONMENT}-fuseki-secured.rule=Host(`fuseki.${SUBDOMAIN}${DOMAIN}`)" # <== Your Domain Name for the https rule
23+
- "traefik.http.routers.${ENVIRONMENT}-fuseki-secured.entrypoints=web-secured" # <== Defining entrypoint for https, **ref: line 31
24+
- "traefik.http.routers.${ENVIRONMENT}-fuseki-secured.tls.certresolver=mytlschallenge" # <== Defining certsresolvers for https
25+
volumes:
26+
fuseki-data:
27+
28+
networks:
29+
fuseki-net:
30+
internal: true
31+
name: fuseki-net-${ENVIRONMENT}
32+
proxy-net:
33+
external:
34+
name: proxy-net
35+
common-ext:
36+
external:
37+
name: common-ext-${ENVIRONMENT}

infra/sftp/docker-compose.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
version: '3'
2+
3+
services:
4+
sftp:
5+
image: atmoz/sftp:debian
6+
volumes:
7+
- sftp-data:/home
8+
environment:
9+
- SFTP_USER=${SFTP_USER}
10+
- SFTP_PASSWORD=${SFTP_PASSWORD}
11+
command: ${SFTP_USER}:${SFTP_PASSWORD}:::upload
12+
ports:
13+
- ${SFTP_PORT:-2235}:22
14+
networks:
15+
- sftp-net
16+
- proxy-net
17+
labels:
18+
#### Labels define the behavior and rules of the traefik proxy for this container ####
19+
- "traefik.enable=true" # <== Enable traefik to proxy this container
20+
- "traefik.http.routers.${ENVIRONMENT}-sftp.rule=Host(`sftp.${SUBDOMAIN}${DOMAIN}`)" # <== Your Domain Name goes here for the http rule
21+
- "traefik.http.routers.${ENVIRONMENT}-sftp.entrypoints=web" # <== Defining the entrypoint for http, **ref: line 30
22+
- "traefik.http.routers.${ENVIRONMENT}-sftp.middlewares=redirect@file" # <== This is a middleware to redirect to https
23+
- "traefik.http.routers.${ENVIRONMENT}-sftp-secured.rule=Host(`sftp.${SUBDOMAIN}${DOMAIN}`)" # <== Your Domain Name for the https rule
24+
- "traefik.http.routers.${ENVIRONMENT}-sftp-secured.entrypoints=web-secured" # <== Defining entrypoint for https, **ref: line 31
25+
- "traefik.http.routers.${ENVIRONMENT}-sftp-secured.tls.certresolver=mytlschallenge" # <== Defining certsresolvers for https
26+
volumes:
27+
sftp-data:
28+
29+
networks:
30+
sftp-net:
31+
internal: true
32+
name: sftp-net-${ENVIRONMENT}
33+
proxy-net:
34+
external:
35+
name: proxy-net
36+
common-ext:
37+
external:
38+
name: common-ext-${ENVIRONMENT}

0 commit comments

Comments
 (0)