-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
108 lines (103 loc) · 3 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
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"
networks:
- semapps
environment:
ADMIN_PASSWORD: "admin"
healthcheck:
test: curl --fail http://localhost:3030 || exit 1
interval: 1s
timeout: 1s
start_period: 5s
middleware:
image: dataplayers/archipelago-middleware:0.9
depends_on:
fuseki:
condition: service_healthy
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_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}
- MJ_APIKEY_PUBLIC=${MJ_APIKEY_PUBLIC}
- MJ_APIKEY_PRIVATE=${MJ_APIKEY_PRIVATE}
command: bash -c "cp -r ./addOn/middleware/* . && yarn install && pm2-runtime 'yarn run dev'"
networks:
- semapps
ports:
- '3000:3000'
backoffice:
image: dataplayers/archipelago-frontend:0.9
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"
networks:
- semapps
ports:
- '4000:4000'
frontend:
build: frontend
container_name: frontend_opaline
volumes:
- ./frontend:/app
environment:
# - REACT_APP_MIDDLEWARE_URL=http://localhost:3000/
- REACT_APP_MIDDLEWARE_URL=https://data.moncollectifemploi.fr/
- REACT_APP_MAPBOX_ACCESS_TOKEN=${REACT_APP_MAPBOX_ACCESS_TOKEN}
- REACT_APP_CONTACT_EMAIL=${CONTACT_EMAIL}
- REACT_APP_CONTACT_LABEL=${CONTACT_LABEL}
- PORT=5001
depends_on:
- middleware
ports:
- "5001:5001"
expose:
- "5001"
networks:
- semapps
command: bash -c "node -v && yarn install && yarn start"
redis:
image: redis
container_name: redis
expose:
- "6379"
environment:
- REDIS_PASSWORD=passw
ports:
- "6379:6379"
networks:
- semapps
volumes:
- ./data/redis_data:/data
command: ["redis-server", "--appendonly", "yes"]
networks:
semapps:
name: bus_network
external: true