-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompose.prod.yml
More file actions
86 lines (81 loc) · 2.19 KB
/
Copy pathcompose.prod.yml
File metadata and controls
86 lines (81 loc) · 2.19 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
services:
nginx:
image: nginx:1.27-alpine
platform: linux/arm64
container_name: vibr-nginx
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- /etc/letsencrypt:/etc/letsencrypt:ro
- /var/www/certbot:/var/www/certbot:ro
depends_on:
- web
- api
restart: unless-stopped
web:
image: ${ECR_REGISTRY}/vibr-web:latest
platform: linux/arm64
container_name: vibr-web
env_file: .env.web
environment:
NODE_ENV: production
# SSR·OAuth 교환 등 서버 사이드에서 백엔드 직접 호출용 (nginx 미경유)
INTERNAL_API_URL: http://api:3000/api
restart: unless-stopped
api:
image: ${ECR_REGISTRY}/vibr-api:latest
platform: linux/arm64
container_name: vibr-api
env_file: .env
environment:
NODE_ENV: production
PORT: 3000
depends_on:
mysql:
condition: service_healthy
redis:
condition: service_healthy
neo4j:
condition: service_started
restart: unless-stopped
mysql:
image: mysql:8.4
platform: linux/arm64
container_name: vibr-mysql
environment:
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
MYSQL_DATABASE: "vibr"
TZ: "Asia/Seoul"
command: [ "mysqld", "--character-set-server=utf8mb4", "--collation-server=utf8mb4_unicode_ci" ]
volumes:
- /data/mysql:/var/lib/mysql
healthcheck:
test: [ "CMD", "mysqladmin", "ping", "-h", "127.0.0.1", "-u", "root", "-p${DB_PASSWORD}" ]
interval: 5s
timeout: 3s
retries: 20
restart: unless-stopped
redis:
image: redis:8.4-alpine
platform: linux/arm64
container_name: vibr-redis
command: [ "redis-server", "--appendonly", "yes", "--requirepass", "${REDIS_PASSWORD}" ]
volumes:
- /data/redis:/data
healthcheck:
test: [ "CMD", "redis-cli", "-a", "${REDIS_PASSWORD}", "ping" ]
interval: 5s
timeout: 3s
retries: 10
restart: unless-stopped
neo4j:
image: neo4j:5.26
platform: linux/arm64
container_name: vibr-neo4j
environment:
NEO4J_AUTH: neo4j/${NEO4J_PASSWORD}
volumes:
- /data/neo4j:/data
restart: unless-stopped