Skip to content

Commit

Permalink
more parameterization in docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
tippmar-nr committed Jul 20, 2023
1 parent 01f397e commit 7e079fd
Showing 1 changed file with 3 additions and 35 deletions.
Original file line number Diff line number Diff line change
@@ -1,50 +1,18 @@
version: "3"

services:
smoketestapp-debian:
smoketestapp:
build:
context: .
dockerfile: SmokeTestApp/Dockerfile
args:
DISTRO_TAG: 7.0-bullseye-slim-amd64
DISTRO_TAG: ${DISTRO_TAG}
NEW_RELIC_LICENSE_KEY: ${NEW_RELIC_LICENSE_KEY}
NEW_RELIC_APP_NAME: ${NEW_RELIC_APP_NAME}
NEW_RELIC_HOST: ${NEW_RELIC_HOST}

ports:
- "8001:80"
- "${PORT}:80"
volumes:
- ${AGENT_PATH}:/usr/local/newrelic-dotnet-agent # AGENT_PATH from .env, points to newrelichome_linux_x64
- ${LOG_PATH}:/app/logs # LOG_PATH from .env, should be a folder unique to this run of the smoketest app

smoketestapp-alpine:
build:
context: .
dockerfile: SmokeTestApp/Dockerfile
args:
DISTRO_TAG: 7.0-alpine-amd64
NEW_RELIC_LICENSE_KEY: ${NEW_RELIC_LICENSE_KEY}
NEW_RELIC_APP_NAME: ${NEW_RELIC_APP_NAME}
NEW_RELIC_HOST: ${NEW_RELIC_HOST}
ports:
- "8002:80"
volumes:
- ${AGENT_PATH}:/usr/local/newrelic-dotnet-agent # AGENT_PATH from .env, points to newrelichome_linux_x64
- ${LOG_PATH}:/app/logs # LOG_PATH from .env, should be a folder unique to this run of the smoketest app

smoketestapp-ubuntu:
build:
context: .
dockerfile: SmokeTestApp/Dockerfile
args:
DISTRO_TAG: 7.0-jammy-amd64
NEW_RELIC_LICENSE_KEY: ${NEW_RELIC_LICENSE_KEY}
NEW_RELIC_APP_NAME: ${NEW_RELIC_APP_NAME}
NEW_RELIC_HOST: ${NEW_RELIC_HOST}
ports:
- "8003:80"
volumes:
- ${AGENT_PATH}:/usr/local/newrelic-dotnet-agent # AGENT_PATH from .env, points to newrelichome_linux_x64
- ${LOG_PATH}:/app/logs # LOG_PATH from .env, should be a folder unique to this run of the smoketest app


0 comments on commit 7e079fd

Please sign in to comment.