Created
October 22, 2020 14:17
-
-
Save alo9507/926661345b9c1bb931ca5ea61f556085 to your computer and use it in GitHub Desktop.
An Apollo GraphQL server in front of a Neo4j database
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1) Install Docker Desktop from https://hub.docker.com/editions/community/docker-ce-desktop-mac/ | |
# This install the docker and docker-compose CLI as well | |
# 2) Run `docker-compose up` in the directory containing this docker-compose.yml file | |
# 3) Run some GraphQL queries against a NEO4J DB without even having it installed on your machine | |
version: "3" | |
services: | |
neo4j: | |
image: neo4j | |
ports: | |
- "7474:7474" | |
- "7687:7687" | |
environment: | |
- NEO4J_AUTH=none | |
api: | |
depends_on: | |
- "neo4j" | |
image: alo42/localhost-api | |
volumes: | |
- /app/node_modules | |
- ./:/app | |
ports: | |
- '4000:4000' | |
environment: | |
- NEO4J_URI=bolt://neo4j:7687 | |
- NEO4J_USER=neo4j | |
- NEO4J_PASSWORD=neo4j | |
- NEO4J_ENCRYPTED=false | |
links: | |
- neo4j |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment