docker-compose
Closed this issue · 3 comments
ErrorRExorY commented
Hey, I will just add this here if anyone else has this problem, since I have docker-compose and docker compose, it was confusing, but I had to specify the Vault version in the docker compose file
version: '3.2'
services:
vault:
image: vault:1.13.3
container_name: vault
environment:
VAULT_DEV_ROOT_TOKEN_ID: supersecret
cap_add:
- IPC_LOCK
expose:
- 8200
supersecret:
build: ./
image: algolia/supersecretmessage:latest
container_name: supersecret
environment:
VAULT_ADDR: http://vault:8200
VAULT_TOKEN: supersecret
SUPERSECRETMESSAGE_HTTP_BINDING_ADDRESS: ":8082"
ports:
- "8082:8082"
depends_on:
- vault
logiczny commented
I had exact problem like yours, adding version instead of a latest
solved the problem.
CaptainExorY commented
I had exact problem like yours, adding version instead of a
latest
solved the problem.
Exactly what I added above, but thanks for clarifying!
AlienPie commented
According to https://hub.docker.com/_/vault, vault
has been deprecated and should be replaced with hashicorp/vault
. This worked for me.