forked from datafoodconsortium/prototype
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
94 lines (92 loc) · 2.01 KB
/
docker-compose.yml
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
version: '3.5'
services:
dfc-fuseki:
image: semapps/jena-fuseki-webacl
container_name: dfc-fuseki
environment:
- ADMIN_PASSWORD=admin
volumes:
- ./data/fuseki:/fuseki
- ./data/staging:/staging
ports:
- "3030:3030"
expose:
- "3030"
networks:
- dfc
healthcheck:
test: curl --fail http://localhost:3030 || exit 1
interval: 1s
timeout: 1s
start_period: 5s
dfc-middleware:
build:
context: ./dfc-semapps
dockerfile: Dockerfile
container_name: dfc-middleware
depends_on:
dfc-fuseki:
condition: service_healthy
environment:
- SEMAPPS_SPARQL_ENDPOINT=http://dfc-fuseki:3030/
- SEMAPPS_MAIN_DATASET=localData
- SEMAPPS_JENA_USER=admin
- SEMAPPS_JENA_PASSWORD=admin
- SEMAPPS_HOME_URL=http://dfc-middleware:3000/
volumes:
- ./dfc-semapps:/server/app
networks:
- dfc
ports:
- "3000:3000"
expose:
- "3000"
command: bash -c "yarn install && yarn run dev"
dfc-app:
build:
context: ./dfc-app
dockerfile: ./Dockerfile.dev
container_name: dfc-app
restart: always
environment:
- APP_PORT=8080
- NODE_ENV=development_docker
- CONFIG_URL=$CONFIG_URL
- SEMAPPS_JENA_USER=admin
- SEMAPPS_JENA_PASSWORD=admin
volumes:
- ./dfc-app:/app
depends_on:
- dfc-middleware
networks:
- dfc
ports:
- "8080:8080"
expose:
- "8080"
command: bash -c "yarn install && yarn run dev"
dfc-ui:
build:
context: ./dfc-ui
dockerfile: ./Dockerfile.dev
container_name: dfc-ui
environment:
- URL_SERVER=http://localhost:8080
volumes:
- ./dfc-ui/src:/app/src
depends_on:
- dfc-app
networks:
- dfc
ports:
- "80:8090"
- "8090:8090"
expose:
- "8090"
command: bash -c "npm rebuild && npm install && npm run dev"
volumes:
rdf_data:
staging:
networks:
dfc:
name: dfc_network