-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
49 lines (46 loc) · 1.4 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
version: '3'
services:
neo4j-db:
image: neo4j:4.2.1-enterprise
container_name: neo4j-db
ports:
- 7474:7474
- 7687:7687
environment:
- NEO4J_AUTH=neo4j/test
- NEO4J_apoc_import_file_enabled=true
- NEO4JLABS_PLUGINS=["apoc"]
- NEO4J_ACCEPT_LICENSE_AGREEMENT=yes
- NEO4J_dbms_connector_https_advertised__address=localhost:7473
- NEO4J_dbms_connector_http_advertised__address=localhost:7474
- NEO4J_dbms_connector_bolt_advertised__address=localhost:7687
volumes:
- ./neo4j/data:/data
- ./neo4j/logs:/logs
- ./northwind:/var/lib/neo4j/import/northwind
- ./cql_scripts/createNorthwind.cql:/createNorthwind.cql
- ./entrypointWrapper.sh:/entrypointWrapper.sh
# needed to resolve issues regarding file permissions and CR/LF between Unix and Windows
entrypoint: bash -c "cp /entrypointWrapper.sh /en.sh && chmod a+x /en.sh && sed -i -e 's/\r$$//' /en.sh && /en.sh"
back-end:
container_name: back-end
image: node:14
command: sh -c "npm install && npm start"
working_dir: /app
volumes:
- ./back-end/:/app
ports:
- "3000:3000"
depends_on:
- neo4j-db
front-end:
container_name: front-end
image: node:14
command: sh -c "npm install && npm start"
working_dir: /app
volumes:
- ./front-end/:/app
ports:
- "4000:4000"
depends_on:
- back-end