forked from data-players/deploy-archipelago2-classic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
85 lines (78 loc) · 2.23 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
version: '3.5'
### DOCKER COMPOSE BASE ###
#
# Here, we define the base services of the app, all the common stuff for everything.
# This compose configuration doesn't work alone and needs to be added to some other compose configurations.
#
networks:
semapps:
name: semapps_network
services:
# Database
fuseki:
image: semapps/jena-fuseki-webacl
container_name: transiscope-nantes-fuseki
volumes:
- './data/fuseki:/fuseki'
- './data/staging:/staging'
ports:
- '3030:3030'
networks:
- semapps
environment:
ADMIN_PASSWORD: ${FUSEKI_PASSWORD}
# Task compacting the database (should be done regularly)
fuseki_compact:
image: semapps/jena-fuseki-webacl:latest
entrypoint: /docker-compact-entrypoint.sh
profiles:
- compact
volumes:
- ./data/fuseki:/fuseki
# Back-end middleware
middleware:
container_name: transiscope-nantes-middleware
depends_on:
- fuseki
- redis
volumes:
- './middleware/logs:/archipelago/middleware/logs'
- './middleware/jwt:/archipelago/middleware/jwt'
- './middleware/uploads:/archipelago/middleware/uploads'
environment:
- SEMAPPS_SPARQL_ENDPOINT=${SEMAPPS_SPARQL_ENDPOINT}
- SEMAPPS_MAIN_DATASET=localData
- SEMAPPS_JENA_USER=admin
- SEMAPPS_JENA_PASSWORD=${FUSEKI_PASSWORD}
- SEMAPPS_HOME_URL=${SEMAPPS_HOME_URL}
- SEMAPPS_OIDC_ISSUER=${SEMAPPS_OIDC_ISSUER}
- SEMAPPS_OIDC_CLIENT_ID=${SEMAPPS_OIDC_CLIENT_ID}
- SEMAPPS_REDIS_CACHE_URL=${SEMAPPS_REDIS_CACHE_URL}
- SEMAPPS_FRONT_URL=${SEMAPPS_FRONT_URL}
- SUPER_ADMINS=${SUPER_ADMINS}
networks:
- semapps
ports:
- '3000:3000'
# Front-end interface
frontend:
container_name: transiscope-nantes-frontend
environment:
- VITE_MIDDLEWARE_URL=${VITE_MIDDLEWARE_URL}
- VITE_MAPBOX_ACCESS_TOKEN=${VITE_MAPBOX_ACCESS_TOKEN}
- PORT=4000
networks:
- semapps
ports:
- '4000:4000'
# Cache database (optional)
redis:
container_name: transiscope-nantes-redis
image: redis
ports:
- '6379:6379'
volumes:
- './data/redis_data:/data'
networks:
- semapps
command: ["redis-server", "--appendonly", "yes"]