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:
|
2020-03-16 07:01:28 +00:00
|
|
|
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
|