forked from data-players/deploy-archipelago-classic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
111 lines (105 loc) · 2.62 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
version: '3.5'
services:
fuseki:
image: semapps/jena-fuseki-webacl
volumes:
- './data/fuseki:/fuseki'
- './data/staging:/staging'
ports:
- '3030:3030'
networks:
- semapps
environment:
ADMIN_PASSWORD: admin
fuseki_compact:
image: semapps/jena-fuseki-webacl:latest
entrypoint: /docker-compact-entrypoint.sh
profiles:
- compact
volumes:
- ./data/fuseki:/fuseki
middleware:
build:
context: ./deploy/middleware
dockerfile: Dockerfile
depends_on:
- fuseki
- keycloak
volumes:
- './middleware/logs:/archipelago/middleware/logs'
- './middleware/jwt:/archipelago/middleware/jwt'
- './middleware/uploads:/archipelago/middleware/uploads'
environment:
- 'SEMAPPS_SPARQL_ENDPOINT=http://fuseki:3030/'
- SEMAPPS_MAIN_DATASET=localData
- SEMAPPS_JENA_USER=admin
- SEMAPPS_JENA_PASSWORD=admin
- 'SEMAPPS_HOME_URL=http://localhost:3000/'
- 'SEMAPPS_OIDC_ISSUER=http://keycloak:8080/auth/realms/DP/'
- SEMAPPS_OIDC_CLIENT_ID=semapps
- 'SEMAPPS_REDIS_URL=redis://redis:6379/0'
networks:
- semapps
ports:
- '3000:3000'
frontend:
build:
context: ./deploy/frontend
dockerfile: Dockerfile
environment:
- 'REACT_APP_MIDDLEWARE_URL=http://localhost:3000/'
- REACT_APP_MAPBOX_ACCESS_TOKEN=MyMapBoxToken
- PORT=4000
volumes:
- ./addOn:/archipelago/frontend/addOn
networks:
- semapps
ports:
- '4000:4000'
command: bash -c "cp -r ./addOn/frontend/* . && yarn build && serve -s build"
redis:
image: redis
ports:
- '6379:6379'
volumes:
- './data/redis_data:/data'
networks:
- semapps
command:
- redis-server
- '--appendonly'
- 'yes'
keycloak:
image: jboss/keycloak
environment:
KEYCLOAK_USER: admin
KEYCLOAK_PASSWORD: admin
KEYCLOAK_IMPORT: /tmp/realm-export.json
KEYCLOAK_FRONTEND_URL: 'http://localhost:8080/auth'
DB_VENDOR: POSTGRES
DB_ADDR: postgres
DB_DATABASE: keycloak
DB_USER: keycloak
DB_SCHEMA: public
DB_PASSWORD: password
depends_on:
- postgres
volumes:
- './deploy/keycloak/realm-export.json:/tmp/realm-export.json'
ports:
- '8080:8080'
networks:
- semapps
postgres:
image: postgres
volumes:
- './keycloak/postgres:/var/lib/postgresql/data'
environment:
POSTGRES_DB: keycloak
POSTGRES_USER: keycloak
POSTGRES_PASSWORD: password
networks:
- semapps
networks:
semapps:
name: semapps_network