2019-07-05 00:36:32 +02:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
|
|
|
neo4j:
|
2019-07-29 23:39:38 +02:00
|
|
|
build: ./docker/neo4j
|
|
|
|
expose:
|
|
|
|
- 7474
|
|
|
|
- 7687
|
2019-07-05 00:36:32 +02:00
|
|
|
environment:
|
|
|
|
- NEO4J_dbms_security_procedures_unrestricted=apoc.*
|
|
|
|
- NEO4J_apoc_import_file_enabled=true
|
|
|
|
- NEO4J_apoc_export_file_enabled=true
|
|
|
|
- NEO4J_dbms_shell_enabled=true
|
2019-08-16 22:42:59 +02:00
|
|
|
volumes:
|
|
|
|
- db_data:/data
|
2019-07-05 00:36:32 +02:00
|
|
|
|
|
|
|
api:
|
|
|
|
build: ./api
|
|
|
|
ports:
|
2019-07-29 23:39:38 +02:00
|
|
|
- 4001:4001
|
2019-07-05 00:36:32 +02:00
|
|
|
depends_on:
|
|
|
|
- neo4j
|
2019-07-29 23:39:38 +02:00
|
|
|
environment:
|
|
|
|
- NEO4J_URI=bolt://neo4j:7687
|
2019-08-16 22:42:59 +02:00
|
|
|
- PHOTO_CACHE=/app/cache
|
2019-08-01 23:57:00 +02:00
|
|
|
# Change This: The publicly exposed url for the api
|
2019-08-10 17:47:53 +02:00
|
|
|
- API_ENDPOINT=http://localhost:4001/
|
2019-08-01 23:57:00 +02:00
|
|
|
- GRAPHQL_LISTEN_PORT=4001
|
2019-08-01 22:58:33 +02:00
|
|
|
volumes:
|
|
|
|
# Change This: Link photo paths from the host machine
|
|
|
|
- ./photos_path:/photos
|
2019-08-16 22:42:59 +02:00
|
|
|
- api_cache:/app/cache
|
2019-07-05 00:36:32 +02:00
|
|
|
|
|
|
|
ui:
|
2019-07-29 23:39:38 +02:00
|
|
|
build:
|
|
|
|
context: ./ui
|
|
|
|
args:
|
2019-08-01 23:57:00 +02:00
|
|
|
# Change This: The publicly exposed url for the graphql api
|
|
|
|
GRAPHQL_ENDPOINT: http://localhost:4001/graphql
|
2019-07-05 00:36:32 +02:00
|
|
|
ports:
|
2019-07-29 23:39:38 +02:00
|
|
|
- 3000:80
|
2019-07-05 00:36:32 +02:00
|
|
|
depends_on:
|
|
|
|
- api
|
2019-08-16 22:42:59 +02:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
db_data:
|
|
|
|
api_cache:
|