7395ebfc79
- 도커 컴포저 파일 마운트
41 lines
923 B
YAML
41 lines
923 B
YAML
services:
|
|
app:
|
|
container_name: alist-api
|
|
image: registry.pjt.kr/alist/api:${IMAGE_TAG}
|
|
restart: always
|
|
|
|
extra_hosts:
|
|
- "host.docker.internal:host-gateway"
|
|
|
|
ports:
|
|
- "127.0.0.1:8106:8106"
|
|
|
|
env_file:
|
|
- /srv/project/alist/env/api/.env
|
|
|
|
volumes:
|
|
- /srv/project/alist/logs/api/app:/logs
|
|
- /srv/project/alist/uploads:/srv/project/alist/uploads
|
|
|
|
environment:
|
|
JAVA_OPTS: >-
|
|
-Dspring.profiles.active=${SPRING_PROFILE}
|
|
-Xms${JVM_XMS}
|
|
-Xmx${JVM_XMX}
|
|
-XX:MaxMetaspaceSize=${JVM_META}
|
|
-Dfile.encoding=UTF-8
|
|
-Duser.timezone=Asia/Seoul
|
|
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "curl -fsS http://localhost:8106/actuator/health || exit 1"]
|
|
interval: 10s
|
|
timeout: 3s
|
|
retries: 10
|
|
start_period: 30s
|
|
|
|
logging:
|
|
driver: json-file
|
|
options:
|
|
max-size: "10m"
|
|
max-file: "5"
|