20 lines
675 B
YAML
20 lines
675 B
YAML
|
services:
|
||
|
nginx-build:
|
||
|
image: "nginx:${NGINX_VERSION}"
|
||
|
profiles: ["build", "build-nginx"]
|
||
|
build:
|
||
|
context: "build-context/nginx"
|
||
|
dockerfile: Dockerfile
|
||
|
args:
|
||
|
EXAMPLE_ARG_FOR_DOCKERFILE: "${EXAMPLE_ARG_FROM_ENV_FILE}"
|
||
|
NGINX_VERSION: "${NGINX_VERSION}"
|
||
|
ping-build:
|
||
|
image: "ping:${PING_VERSION}"
|
||
|
profiles: ["build", "build-ping"]
|
||
|
build:
|
||
|
context: "build-context/ping"
|
||
|
dockerfile: Dockerfile
|
||
|
args:
|
||
|
EXAMPLE_ARG_FOR_DOCKERFILE: "${EXAMPLE_ARG_FROM_ENV_FILE}"
|
||
|
PING_VERSION: "${PING_VERSION}"
|