Files
photoview/docker-compose.proxy-example.yml
2019-08-30 15:43:24 +02:00

57 lines
1.2 KiB
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
volumes:
- db_data:/data
api:
build: ./api
expose:
- 80
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:8080/api
- GRAPHQL_LISTEN_PORT=80
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:8080/api/graphql
expose:
- 80
depends_on:
- api
proxy:
image: nginx
volumes:
- ./docker/nginx-proxy/default.conf:/etc/nginx/conf.d/default.conf
ports:
- 8080:80
depends_on:
- api
- ui
volumes:
db_data:
api_cache: