41 lines
947 B
YAML
41 lines
947 B
YAML
services:
|
|
app:
|
|
container_name: alist-api-front
|
|
image: registry.pjt.kr/alist/api-front:${IMAGE_TAG}
|
|
restart: always
|
|
|
|
extra_hosts:
|
|
- "host.docker.internal:host-gateway"
|
|
|
|
ports:
|
|
- "127.0.0.1:8112:8112"
|
|
|
|
env_file:
|
|
- /srv/project/alist/env/api-front/.env
|
|
|
|
volumes:
|
|
- /srv/project/alist/logs/api-front/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:8112/actuator/health || exit 1"]
|
|
interval: 10s
|
|
timeout: 3s
|
|
retries: 10
|
|
start_period: 30s
|
|
|
|
logging:
|
|
driver: json-file
|
|
options:
|
|
max-size: "10m"
|
|
max-file: "5"
|