Skip to content

config neo4j in docker-compose.yml? #12

@alexw668

Description

@alexw668

Hi,

I am new to Docker. I have a Rails app that uses Neo4j graph database, and I would like to run this app in docker. I'd want to use a docker-compose.yml to have two services, one is neo4j and the other is web that links to neo4j. In neo4j service part, I would like to use the neo4j image you created (and hosted in Docker Hub):

neo4j:
image: tpires/neo4j
ports:
- "7474:7474"
....

web:
build .
...
links:
- neo4j

I'd want to run the neo4j image with authentication enabled and a username/password set, just like what you mentioned:

docker run -i -t -d -e NEO4J_AUTH=username:password --name neo4j --cap-add=SYS_RESOURCE -p 7474:7474 tpires/neo4j

How would I do it from within my docker-compose.yml? If neo4j's authentication can't be set in docker-compose.yml, where can I do it?

Thanks for your any input.

Alex

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions