skip to Main Content

Docker – Secrets in Compose: Environment variable has file path as value instead of its content

I'm trying to use Secrets with Docker Compose Here is my Docker Compose (only the relevant parts): version: "3.8" services: My-Service: build: context: ./.. dockerfile: ./docker/Dockerfile image: my-app/api container_name: my-app-api environment: ASPNETCORE_ENVIRONMENT: Docker ASPNETCORE_URLS: http://+:8080 Swagger__Authentication__ClientSecret_FILE: /run/secrets/my_secret secrets: - my_secret…

VIEW QUESTION
Back To Top
Search