-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
61 lines (53 loc) · 1.47 KB
/
Copy pathdocker-compose.yml
File metadata and controls
61 lines (53 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
services:
backend:
image: ${DOCKERHUB_USERNAME}/musereview:latest
container_name: musereview-be
restart: unless-stopped
env_file:
- .env
environment:
TZ: Asia/Seoul
SPRING_PROFILES_ACTIVE: ${SPRING_PROFILES_ACTIVE}
SPRING_JPA_OPEN_IN_VIEW: "false"
APP_PROFILE_DEFAULTIMAGEURL: ${DEFAULT_PROFILE_IMAGE_URL:?DEFAULT_PROFILE_IMAGE_URL is required}
AI_INTERNAL_BASE_URL: ${AI_INTERNAL_BASE_URL:?AI_INTERNAL_BASE_URL is required}
SPRING_DATA_REDIS_HOST: redis
SPRING_DATA_REDIS_PORT: 6379
ports:
- "127.0.0.1:8080:8080"
depends_on:
analysis:
condition: service_healthy
redis:
condition: service_healthy
redis:
image: redis:7.4-alpine
container_name: musereview-redis
restart: unless-stopped
command: ["redis-server", "--appendonly", "no"]
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 5
analysis:
build:
context: ../ANALYSIS
dockerfile: Dockerfile
image: musereview-analysis:latest
container_name: musereview-analysis
restart: unless-stopped
environment:
TZ: Asia/Seoul
ports:
- "127.0.0.1:8001:8000"
healthcheck:
test:
- CMD
- python
- -c
- import urllib.request; urllib.request.urlopen('http://localhost:8000/health')
interval: 10s
timeout: 5s
retries: 5
start_period: 10s