docker/springboot/docker-compose.yml
2018-05-30 09:37:08 +08:00

20 lines
630 B
YAML

version: '3'
services:
app:
image: registry.cn-hangzhou.aliyuncs.com/kennylee/springboot:latest
volumes:
- ./app/:/data/app/
- ./config/application.yml:/data/config/application.yml:ro
environment:
JAVA_OPTS: -server -Xms128m -Xmx1g -Djava.security.egd=file:/dev/./urandom
ports:
- "8080:8080"
entrypoint:
- /entrypoint.sh
- --spring.config.location=/data/config/application.yml
logging:
driver: 'json-file'
options:
max-size: '30m'
max-file: '20'