-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dev.yml
executable file
·64 lines (58 loc) · 2.29 KB
/
docker-compose.dev.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
# In order to get the app and the database to communicate with each other, you have to setup static IP addresses on each container. Then, when registering Neo4j with hapi in hapi’s `server.js` file, you reference the static IP that you set for Neo4j in this file.
version: "3.7"
services:
ink-dev-app:
build:
context: .
dockerfile: Dockerfile.dev
volumes:
- .:/usr/src/app
# The following line causes the node_modules directory in your container to be populated with the packages for each dependency and the node_modules directory on your local machine to remain empty. This ensures that the packages that are installed inside the container will not be overridden by your local project files.
- /usr/src/app/node_modules
ports:
- 8080:8080
- 9229:9229 # These ports are used for debugging
# You have to run `npm install` to install the dependencies and `npm run dev` to start the app.
# You have to use bash to execute the command otherwise you will get errors.
command: bash -c "npm install && npm run dev"
# # Comment out everything below this line in order to run the app without the database.
# networks:
# app_net:
# ipv4_address: 172.28.1.1
# depends_on:
# - dev-neo4j
# dev-neo4j:
# image: bitnami/neo4j:3.5.3
# ports:
# - "7474:7474"
# - "7473:7473"
# - "7687:7687"
# # Tried some configs for the APOC library, but no luck yet.
# # environment:
# # - NEO4J_dbms_security_procedures_unrestricted=apoc.*
# # - NEO4J_apoc_import_file_enabled=true
# # - NEO4J_dbms_shell_enabled=true
# # Volumes allow you to persist data. See the README to find out where the Neo4j data are stored on the host machine.
# volumes:
# - type: volume
# source: neo4j_dev_data
# target: /bitnami
# # Possible configs for the APOC library
# # - type: volume
# # source: neo4j_dev_plugins
# # target: /plugins
# # - ./plugins:/plugins
# networks:
# app_net:
# ipv4_address: 172.28.1.2
# volumes:
# neo4j_dev_data:
# driver: local
# # Possible config for the APOC library
# # neo4j_dev_plugins:
# networks:
# app_net:
# ipam:
# driver: default
# config:
# - subnet: 172.28.0.0/16