mirror of
https://gitee.com/kennylee/docker.git
synced 2024-11-29 18:38:34 +08:00
21 lines
659 B
YAML
21 lines
659 B
YAML
version: '2.4'
|
|
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
|
|
restart: on-failure
|
|
logging:
|
|
driver: 'json-file'
|
|
options:
|
|
max-size: '12m'
|
|
max-file: '5'
|