mirror of
https://gitee.com/kennylee/docker.git
synced 2024-12-02 03:48:15 +08:00
20 lines
630 B
YAML
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'
|