forked from sueszli/will-wohnen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
27 lines (24 loc) · 907 Bytes
/
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
# see: https://neo4j.com/docs/graph-data-science/current/installation/installation-docker/
services:
main:
container_name: main
volumes:
- type: bind
source: .
target: /workspace
working_dir: /workspace
user: ${UID:-1000}:${GID:-1000}
ports:
- '7474:7474'
- '7687:7687'
build:
context: .
dockerfile_inline: |
FROM neo4j:latest
RUN apt-get update && apt-get install -y python3 python3-pip && \
pip3 install --upgrade pip && \
pip3 install neo4j graphdatascience torch
EXPOSE 7474 7687
ENV NEO4J_AUTH=none
ENV NEO4J_PLUGINS='["graph-data-science"]'
RUN echo 'user:x:${UID:-1000}:${GID:-1000}::/workspace:/bin/bash' >> /etc/passwd