51 lines
1.2 KiB
YAML
51 lines
1.2 KiB
YAML
services:
|
|
nginx:
|
|
image: nginx:alpine
|
|
container_name: kamco-cd-api-nginx
|
|
ports:
|
|
- "12013:443"
|
|
volumes:
|
|
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
|
|
- ./nginx/conf.d:/etc/nginx/conf.d:ro
|
|
- /etc/ssl/certs/globalsign:/etc/ssl/certs/globalsign:ro
|
|
networks:
|
|
- kamco-cds
|
|
restart: unless-stopped
|
|
depends_on:
|
|
- kamco-cd-api
|
|
healthcheck:
|
|
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost/health"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
start_period: 10s
|
|
|
|
kamco-cd-api:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile-prod
|
|
args:
|
|
UID: 1000 # manager01 UID
|
|
GID: 1000 # manager01 GID
|
|
image: kamco-cd-api:${IMAGE_TAG:-latest}
|
|
container_name: kamco-cd-api
|
|
user: "1000:1000"
|
|
environment:
|
|
- SPRING_PROFILES_ACTIVE=prod
|
|
- TZ=Asia/Seoul
|
|
volumes:
|
|
- /data:/kamco-nfs
|
|
networks:
|
|
- kamco-cds
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: [ "CMD", "curl", "-f", "http://localhost:8080/monitor/health" ]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
start_period: 40s
|
|
|
|
networks:
|
|
kamco-cds:
|
|
external: true
|