40 lines
901 B
YAML
40 lines
901 B
YAML
version: '3'
|
|
|
|
services:
|
|
neo4j:
|
|
build: ./docker/neo4j
|
|
expose:
|
|
- 7474
|
|
- 7687
|
|
environment:
|
|
- NEO4J_dbms_security_procedures_unrestricted=apoc.*
|
|
- NEO4J_apoc_import_file_enabled=true
|
|
- NEO4J_apoc_export_file_enabled=true
|
|
- NEO4J_dbms_shell_enabled=true
|
|
|
|
api:
|
|
build: ./api
|
|
ports:
|
|
- 4001:4001
|
|
depends_on:
|
|
- neo4j
|
|
environment:
|
|
- NEO4J_URI=bolt://neo4j:7687
|
|
# Change This: The publicly exposed url for the api
|
|
- GRAPHQL_LISTEN_HOST=http://localhost/
|
|
- GRAPHQL_LISTEN_PORT=4001
|
|
volumes:
|
|
# Change This: Link photo paths from the host machine
|
|
- ./photos_path:/photos
|
|
|
|
ui:
|
|
build:
|
|
context: ./ui
|
|
args:
|
|
# Change This: The publicly exposed url for the graphql api
|
|
GRAPHQL_ENDPOINT: http://localhost:4001/graphql
|
|
ports:
|
|
- 3000:80
|
|
depends_on:
|
|
- api
|