-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
56 lines (53 loc) · 1.33 KB
/
docker-compose.yml
File metadata and controls
56 lines (53 loc) · 1.33 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
services:
redis:
image: redis:7-alpine
container_name: muaring-redis
ports:
- "6379:6379"
command: [ "redis-server", "--appendonly", "yes" ] # AOF 설정
restart: unless-stopped
volumes:
- redis-data:/data
healthcheck:
test: [ "CMD", "redis-cli", "ping" ]
interval: 10s
timeout: 5s
retries: 5
volumes:
redis-data:
#services:
# postgres:
# image: postgres:16 # 원하는 버전 선택
# container_name: muaring-db
# environment:
# POSTGRES_DB: ${DB_NAME} # DB 이름
# POSTGRES_USER: ${DB_USERNAME} # 사용자
# POSTGRES_PASSWORD: ${DB_PASSWORD} # 비밀번호
# TZ: Asia/Seoul
# ports:
# - "5434:5432" # 호스트-컨테이너 포트 매핑
# volumes:
# - postgres-data:/var/lib/postgresql/data
# restart:
# unless-stopped
# env_file:
# .env
# healthcheck:
# test: [ "CMD-SHELL", "pg_isready -h 127.0.0.1 -U muaringuser -d muaringdb" ]
# interval: 10s
# timeout: 5s
# retries: 5
#
# redis:
# image: redis:7-alpine
# container_name: muaring-redis
# ports:
# - "6379:6379"
# command: [ "redis-server", "--appendonly", "yes" ] # AOF 설정
# restart: unless-stopped
# volumes:
# - redis-data:/data
#
#volumes:
# postgres-data:
# redis-data: