Skip to content

Unlocking the wallet with a Docker secret#630

Merged
joelvai merged 2 commits intoCodaone:develfrom
jquijino:unlock-with-docker-secret
Jul 16, 2019
Merged

Unlocking the wallet with a Docker secret#630
joelvai merged 2 commits intoCodaone:develfrom
jquijino:unlock-with-docker-secret

Conversation

@jquijino
Copy link

This allows using DEXBot in Docker Swarm more securely using Docker secrets.
In order to try this out, simply create a file passphrase.secret containing the passphrase, then use the following docker-compose.yml

version: '3.6'

services:
  dexbot:
    build: .
    networks:
      - develop
    volumes:
      - ./dexbot-data:/home/dexbot/.local/share
      - ./dexbot-config:/home/dexbot/.config/dexbot
    environment:
      UNLOCK: "/run/secrets/passphrase"
    secrets:
      - passphrase
    command: dexbot-cli run

secrets:
  passphrase:
    file: ./passphrase.secret

networks:
  develop:
    driver: bridge

@bitphage bitphage changed the base branch from master to devel July 15, 2019 09:46
@bitphage bitphage self-requested a review July 15, 2019 09:48
bitphage
bitphage previously approved these changes Jul 15, 2019
Copy link
Collaborator

@bitphage bitphage left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!
Looks good to me.

@jquijino
Copy link
Author

Awesome, thanks! Looking forward to the merge because then we start our Docker Swarm deployment.

@joelvai joelvai merged commit 25b44dc into Codaone:devel Jul 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants