-
Notifications
You must be signed in to change notification settings - Fork 1
/
compose.yml
58 lines (53 loc) · 1.29 KB
/
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
services:
neo4j:
hostname: neo4j-bootcamp-db
container_name: neo4j-bootcamp-db
image: 'neo4j:4.4-community'
restart: unless-stopped
healthcheck:
test: [ "CMD", "neo4j", "status" ]
interval: 30s
timeout: 10s
retries: 3
env_file:
- ./configs/neo4j.env
volumes:
- neo4j-bootcamp-db-data:/data
ports:
- '7474:7474'
- '7687:7687'
networks:
- neo4j-bootcamp-network
jupyter:
#image: jupyter/minimal-notebook
build:
context: .
dockerfile: Dockerfile # Assuming the Dockerfile is in the same directory as your docker-compose.yml
container_name: neo4j-bootcamp-jupyter
hostname: neo4j-bootcamp-jupyter
volumes:
- jupyter-data:/home/jovyan/work/
- ./configs/jupyter-entrypoint.sh:/jupyter-entrypoint.sh
env_file:
- ./configs/jupyter.env
restart: unless-stopped
entrypoint: [ "/bin/bash", "/jupyter-entrypoint.sh" ]
ports:
- '8888:8888'
networks:
- neo4j-bootcamp-network
depends_on:
neo4j:
condition: service_healthy
networks:
neo4j-bootcamp-network:
external: true
volumes:
neo4j-bootcamp-db-data:
external: true
jupyter-data:
driver: local
driver_opts:
type: none
device: ./src
o: bind