orientechnologies / orientdb-docker

OrientDB running in a docker container
MIT License
63 stars 63 forks source link

overriding configuration params in docker-compose.yml #37

Closed sbcd90 closed 6 years ago

sbcd90 commented 6 years ago

Hello, I see from the documentation that I can override configuration params upon startup using -D as shown below.

docker run -d --name orientdb -p 2424:2424 -p 2480:2480 \
    -v <config_path>:/orientdb/config \
    -v <databases_path>:/orientdb/databases \
    -v <backup_path>:/orientdb/backup \
    -e ORIENTDB_ROOT_PASSWORD=rootpwd \
    -e ORIENTDB_NODE_NAME=odb1 \
    orientdb /orientdb/bin/server.sh  -Ddistributed=true

Is it also possible to override configuration params like this in docker-compose.yml? Can someone please help?

robfrank commented 6 years ago

In a compose file:

version: '2'
services:
    orientdb:
        image: orientdb:latest
        volumes:
            - ~/volumes/orientdb/databases:/orientdb/databases
        environment:
            ORIENTDB_ROOT_PASSWORD: rootpwd
        ports:
            - 2480:2480
            - 2424:2424
sbcd90 commented 6 years ago

Thanks @robfrank . Closing this issue.