Created
September 21, 2018 03:54
-
-
Save homingli/5474e26652ebca3a0f3b407b9cab447e to your computer and use it in GitHub Desktop.
example docker compose yaml for starting gremlin daemon
This file contains hidden or 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
version: '3' | |
services: | |
gremlin: | |
image: gremlin/gremlin | |
command: daemon | |
network_mode: "host" | |
pid: "host" | |
cap_add: | |
- NET_ADMIN | |
- SYS_ADMIN | |
- SYS_BOOT | |
- KILL | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock | |
- /var/log/gremlin:/var/log/gremlin | |
- /var/lib/gremlin:/var/lib/gremlin | |
environment: | |
- GREMLIN_TEAM_ID=XXXXX | |
- GREMLIN_TEAM_SECRET=XXXXX |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
note: replace XXXXX with your TEAM ID and SECRET
start:
$ docker-compose -f gremlind.yml up -d
stop:
$ docker-compose -f gremlind.yml down