docker-compose.yml文件:
version: ‘3’
services:
pulsar_simulator:
image: openjdk:8-jdk
#image: openjdk:8-jdk:8-jdk
container_name: spring-cloud-test
network_mode: bridge
restart: always
tty: true
ports:
- 2012:2012
- 2022:6666
extra_hosts:
- “atong.com:XXXX”
volumes:
- /data/workspace/spring-cloud-test/:/atong
- /etc/localtime:/etc/localtim
working_dir: /hairou
#command: java -Duser.timezone=GMT+08 -jar application.jar
command: java -Duser.timezone=GMT+08 -Xdebug -Xrunjdwp:transport=dt_socket,suspend=n,server=y,address=6666 -jar application.jar