Skip to content

Commit 1488323

Browse files
committed
feat: PostgreSQL 로컬에 따로 설치 없이 Docker에서 실행되도록 설정
1 parent fd37189 commit 1488323

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

build.gradle.kts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ dependencies {
3535
implementation("org.springframework.boot:spring-boot-starter-data-redis")
3636
implementation("mysql:mysql-connector-java:8.0.33")
3737

38+
implementation ("org.antlr:antlr4-runtime:4.10.1")
39+
40+
3841
// PostgreSQL + PostGIS
3942
implementation("org.postgresql:postgresql:42.7.3") // 최신 버전 확인
4043
implementation ("org.hibernate.orm:hibernate-spatial:6.2.7.Final") // 최신 Hibernate 6

docker-compose.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
services:
2+
postgres:
3+
image: postgis/postgis:15-3.3
4+
container_name: log4u_postgres
5+
environment:
6+
POSTGRES_DB: gis_db
7+
POSTGRES_USER: postgres
8+
POSTGRES_PASSWORD: 1234
9+
ports:
10+
- "5432:5432"
11+
volumes:
12+
- pgdata:/var/lib/postgresql/data
13+
- ./docker/init.sql:/docker-entrypoint-initdb.d/init.sql
14+
networks:
15+
- log4u-net
16+
17+
volumes:
18+
pgdata:
19+
20+
networks:
21+
log4u-net:

0 commit comments

Comments
 (0)