-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
60 lines (58 loc) · 1.66 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
version: "3.1"
services:
postgres:
image: postgres:14
environment:
- POSTGRES_PASSWORD=postgres
healthcheck:
test: 'psql -c "\l" postgres postgres'
restart: always
volumes:
- pgdata:/var/lib/postgresql/data
- ./backend/create_db.sql:/docker-entrypoint-initdb.d/edpop.sql
ports:
- 127.0.0.1:5432:5432
blazegraph:
image: islandora/blazegraph:main
healthcheck:
test: 'curl -f http://blazegraph:8080/bigdata/'
volumes:
- bzdata:/data
ports:
- 127.0.0.1:9999:8080
backend:
build:
context: ./backend
environment:
EDPOP_TRIPLESTORE_BASE_URL: 'http://blazegraph:8080/bigdata'
EDPOP_DATABASE_HOST: postgres
EDPOP_STATICFILES_DIRS: '/usr/src/app/frontend/vre'
depends_on:
postgres:
condition: service_healthy
blazegraph:
condition: service_healthy
healthcheck:
test: 'curl -f localhost:8000'
volumes:
- ./backend:/usr/src/app/backend
- bapyca:/usr/src/app/backend/__pycache__
- ./frontend/vre:/usr/src/app/frontend/vre
ports:
- 127.0.0.1:8000:8000
frontend:
build:
context: ./frontend
healthcheck:
test: 'test -f bundle.js'
volumes:
- ./frontend:/usr/src/app
- frnomo:/usr/src/app/node_modules
ports:
- 127.0.0.1:9876:9876
command: npm run watch
volumes:
pgdata:
bzdata:
bapyca:
frnomo: