Hello there when I hard code secret information into my compose file everything works fine.
But this is not secure is there are way to use docker secrets when I am deploying the my stack in docker swarm?
This works:
version: β3.3β
services:
drone-server:
image: drone/drone:1
environment:
- DRONE_LOGS_DEBUG=true
- DRONE_LOGS_PRETTY=true
- DRONE_SERVER_HOST=drone.example.io
- DRONE_SERVER_PROTO=https
- DRONE_TLS_AUTOCERT=false
- DRONE_RUNNER_CAPACITY=2
- DRONE_USER_CREATE=username:myuser,admin:true
- DRONE_BITBUCKET_CLIENT_ID=11111111111mY1111111
- DRONE_BITBUCKET_CLIENT_SECRET=99999999G3aA1999999
β¦
This doesnβt work:
version: β3.3β
services:
drone-server:
image: drone/drone:1
secrets:
- bitbucket_client_id
- bitbucket_client_secret
environment:
- DRONE_LOGS_DEBUG=true
- DRONE_LOGS_PRETTY=true
- DRONE_SERVER_HOST=drone.example.io
- DRONE_SERVER_PROTO=https
- DRONE_TLS_AUTOCERT=false
- DRONE_RUNNER_CAPACITY=2
- DRONE_USER_CREATE=username:myuser,admin:true
- DRONE_BITBUCKET_CLIENT_ID=/run/secrets/bitbucket_client_id
- DRONE_BITBUCKET_CLIENT_SECRET=/run/secrets/bitbucket_client_secret