Giter VIP home page Giter VIP logo

Comments (3)

hunterlong avatar hunterlong commented on May 23, 2024

Docker Secrets only works with a Docker Swarm setup though, many people (including me) have no need for a swarm, i just want to do a docker run and continue my day.

Do you know how to use secrets with the standard Docker? (no swarm)?

from statping.

douglasmiranda avatar douglasmiranda commented on May 23, 2024

I understand.

You can use if you're running with Docker Compose, using the syntax below:

version: '3.6'

services:
  statup:
    image: hunterlong/statup:latest
    # ...
    secrets:
      - DB_PASS

secrets:
  DB_PASS:
    file: ./DB_PASS

As you can see, Docker Compose emulates the behaviour of Docker Secrets by using a file, therefore not the Docker Secrets' storage, but the rest is the same it will mount DB_PASS at /run/secrets/DB_PASS.

https://docs.docker.com/compose/compose-file/#secrets


In my case, I'm deploying statup with Docker Swarm because I'm deploying alongside other devtools. But I imagine most cases people will be deploying statup in an exclusive server, thus not needing to use Docker Swarm.

from statping.

github-actions avatar github-actions commented on May 23, 2024

This issue hasn't had any updates in a while. If this is still a problem, please create a new issue.

from statping.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.