Skip to content

Commit d6e333a

Browse files
안훈기안훈기
authored andcommitted
🔧Settings: local docker-compose.yml
1 parent 46445b1 commit d6e333a

File tree

2 files changed

+42
-2
lines changed

2 files changed

+42
-2
lines changed

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,3 @@ src/main/resources/*.yml
3939
### VS Code ###
4040
.vscode/
4141

42-
## local docker compose
43-
docker/docker-compose.local.yml

docker/docker-compose.local.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
version: "3.9"
2+
3+
services:
4+
db:
5+
image: postgis/postgis:16-3.4
6+
container_name: sportize-postgis-local
7+
restart: unless-stopped
8+
9+
environment:
10+
POSTGRES_DB: sportize
11+
POSTGRES_USER: angora
12+
POSTGRES_PASSWORD: password
13+
TZ: Asia/Seoul
14+
15+
ports:
16+
- "5432:5432"
17+
18+
volumes:
19+
- sportize_pgdata_local:/var/lib/postgresql/data
20+
21+
healthcheck:
22+
test: ["CMD-SHELL", "pg_isready -U angora -d sportize"]
23+
interval: 10s
24+
timeout: 5s
25+
retries: 5
26+
redis:
27+
image: redis:7.2.4-alpine
28+
container_name: sportize-redis-local
29+
restart: unless-stopped
30+
ports:
31+
- "6379:6379"
32+
command: ["redis-server", "--appendonly", "yes", "--requirepass", "password"]
33+
volumes:
34+
- sportize_redisdata_local:/data
35+
healthcheck:
36+
test: [ "CMD", "redis-cli", "-a", "password", "PING" ]
37+
interval: 10s
38+
timeout: 3s
39+
retries: 5
40+
volumes:
41+
sportize_pgdata_local:
42+
sportize_redisdata_local:

0 commit comments

Comments
 (0)