pinpoint-docker-fork/pinpoint-agent-attach-example/tomcat/docker-compose.yml

22 lines
585 B
YAML
Raw Permalink Normal View History

2018-05-11 09:30:45 +00:00
version: "2.1"
services:
tomcat:
#build if needed
# build:
# context: .
# dockerfile: Dockerfile
container_name: "tomcat"
image: "Your Image"
ports:
- "${APP_PORT:-8080}:8080"
volumes_from:
- container:pinpoint-agent
environment:
JAVA_OPTS: "-javaagent:/pinpoint-agent/pinpoint-bootstrap-${PINPOINT_VERSION}.jar -Dpinpoint.agentId=${AGENT_ID} -Dpinpoint.applicationName=${APP_NAME} -Dspring.profiles.active=${SPRING_PROFILES}"
2018-05-11 09:30:45 +00:00
command: catalina.sh run
networks:
default:
external:
name: pinpoint-agent_pinpoint