-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (39 loc) · 854 Bytes
/
docker-compose.yml
File metadata and controls
43 lines (39 loc) · 854 Bytes
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
version: "3.8"
services:
postgres:
image: postgres:16
container_name: local-postgres
ports:
- "5432:5432"
environment:
POSTGRES_DB: nookDB
POSTGRES_USER: nook
POSTGRES_PASSWORD: nook1234
TZ: Asia/Seoul
volumes:
- postgres_data:/var/lib/postgresql/data
restart: unless-stopped
redis:
image: redis:7
container_name: local-redis
ports:
- "6379:6379"
command: ["redis-server", "--appendonly", "yes"]
volumes:
- redis_data:/data
restart: unless-stopped
h2:
image: oscarfonts/h2
container_name: local-h2
ports:
- "1521:1521" # TCP
- "8082:81" # H2 Console
environment:
H2_OPTIONS: -ifNotExists
volumes:
- h2_data:/opt/h2-data
restart: unless-stopped
volumes:
postgres_data:
redis_data:
h2_data: