53 lines
1.3 KiB
YAML
53 lines
1.3 KiB
YAML
|
# Use this config, if you want to setup the proxy between the ui and api yourself
|
||
|
# Otherwise use the docker-compose.proxy-example.yml config
|
||
|
|
||
|
# You can use the nginx config located at /docker/nginx-proxy/default.conf
|
||
|
# as a reference for how the proxy might be setup
|
||
|
|
||
|
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
|
||
|
volumes:
|
||
|
- db_data:/data
|
||
|
|
||
|
api:
|
||
|
build: ./api
|
||
|
ports:
|
||
|
- 4001:4001
|
||
|
depends_on:
|
||
|
- neo4j
|
||
|
environment:
|
||
|
- NEO4J_URI=bolt://neo4j:7687
|
||
|
- PHOTO_CACHE=/app/cache
|
||
|
# Change This: The publicly exposed url for the api
|
||
|
- API_ENDPOINT=http://localhost:4001/
|
||
|
- GRAPHQL_LISTEN_PORT=4001
|
||
|
volumes:
|
||
|
# Change This: Link photo paths from the host machine
|
||
|
- ./photos_path:/photos
|
||
|
- api_cache:/app/cache
|
||
|
|
||
|
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
|
||
|
|
||
|
volumes:
|
||
|
db_data:
|
||
|
api_cache:
|