build args in docker compose code example
Example 1: docker compose add arguments
You can specify the arguments directly in your docker-compose file under args:
version: '3'
services:
rq_dashboad:
build:
context: .
args:
- RQ_DASHBOARD_REDIS_URL=redis://redis:6379
image: IMAGE_NAME_HERE
Example 2: docker-compose build image with args
docker-compose build --build-arg =