-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-dev.yaml
95 lines (91 loc) · 2.75 KB
/
docker-compose-dev.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
version: '3.5'
services:
fuseki:
image: semapps/jena-fuseki-webacl
container_name: fuseki_opaline
volumes:
- ./data/fuseki:/fuseki
- ./data/staging:/staging
ports:
- "3030:3030"
expose:
- "3030"
environment:
ADMIN_PASSWORD: "admin"
healthcheck:
test: curl --fail http://localhost:3030 || exit 1
interval: 1s
timeout: 5s
start_period: 5s
middleware:
build:
context: ./../archipelago-build-dockerhub/
dockerfile: Dockerfile.mid
depends_on:
fuseki:
condition: service_healthy
redis:
condition: service_started
volumes:
- './data/middleware/logs:/archipelago/middleware/logs'
- './data/middleware/jwt:/archipelago/middleware/jwt'
- './data/middleware/uploads:/archipelago/middleware/uploads'
- './middleware/addOn:/archipelago/middleware/addOn'
- './data/fuseki/databases/localData:/localData'
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_FRONT_URL=http://localhost:4010/'
- SEMAPPS_OIDC_ISSUER=https://login.lescommuns.org/auth/realms/master/
- SEMAPPS_OIDC_CLIENT_ID=semapps
- SEMAPPS_REDIS_CACHE_HOST=redis
- SEMAPPS_REDIS_CACHE_PASSW=passw
- REPLYTO_EMAIL=${REPLYTO_EMAIL}
- REPLYTO_LABEL=${REPLYTO_LABEL}
- SMS_SENDER=${SMS_SENDER}
- MJ_APIKEY_PUBLIC=${MJ_APIKEY_PUBLIC}
- MJ_APIKEY_PRIVATE=${MJ_APIKEY_PRIVATE}
- MJ_SMS_TOKEN=${MJ_SMS_TOKEN}
command: bash -c "cp -r ./addOn/middleware/* . && yarn install && pm2-runtime 'yarn run dev'"
ports:
- '3000:3000'
backoffice:
build:
context: ./../archipelago-build-dockerhub/
dockerfile: Dockerfile.front
environment:
- 'REACT_APP_MIDDLEWARE_URL=http://localhost:3000/'
- REACT_APP_MAPBOX_ACCESS_TOKEN=${REACT_APP_MAPBOX_ACCESS_TOKEN}
- PORT=4000
volumes:
- ./backoffice/addOn:/archipelago/frontend/addOn
command: bash -c "cp -r ./addOn/frontend/* . && yarn install && yarn copy-and-start-addOn"
ports:
- '4000:4000'
frontend:
command: bash -c "yarn install && yarn dev"
environment:
- 'VITE_MIDDLEWARE_URL=http://localhost:3000'
volumes:
- ./frontend:/app/
build:
context: .
dockerfile: frontend/Dockerfile
restart: unless-stopped
ports:
- "4010:4010"
redis:
image: redis
container_name: redis
expose:
- "6379"
environment:
- REDIS_PASSWORD=passw
ports:
- "6379:6379"
volumes:
- ./data/redis_data:/data
command: ["redis-server", "--appendonly", "yes"]