whythawk / full-stack-fastapi-postgresql

Full stack, modern web application generator. Using FastAPI, PostgreSQL as database, Nuxt3, Docker, automatic HTTPS and more.
MIT License
238 stars 48 forks source link

Add Neo4j to Docker Compose network #2

Closed br3ndonland closed 3 years ago

br3ndonland commented 3 years ago

Description

This PR will add a Neo4j service to the Docker Compose network.

To try it out locally:

# Clone the repo
git clone git@github.com:whythawk/full-stack-fastapi-postgresql.git
cd ./full-stack-fastapi-postgresql

# Generate a sample project
bash ./scripts/dev-link.sh

# Start the Docker Compose network in the sample project
cd ./dev-link
docker-compose up

Then browse to the Neo4j dashboard at http://localhost:7474.

Changes

Notes

The Neo4j Docker image does not yet have multi-architecture support, so the image can only run on x86_64 systems. If running on ARM processors (like Apple Silicon Macs), it is possible to specify the platform:

https://github.com/whythawk/full-stack-fastapi-postgresql/blob/b2f3d94f3d8ec4f9a72ac071ab02b5a67adab713/%7B%7Bcookiecutter.project_slug%7D%7D/docker-compose.yml#L106-L118

It is also possible to run the experimental ARM images, but they are not yet tested.