Skip to content

Commit 20f8633

Browse files
committed
feat(docker): switch Postgres service to custom-built image and update workflow to use build flag
1 parent a424ab4 commit 20f8633

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

.github/workflows/deploy-dev.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,8 @@ jobs:
4949
# 기존 컨테이너 중지 및 제거
5050
docker compose down
5151
52-
# 새 이미지 풀 및 컨테이너 시작
53-
docker compose pull
54-
docker compose up -d
52+
# 컨테이너 빌드 및 시작
53+
docker compose up -d --build
5554
5655
# 사용하지 않는 이미지 정리
5756
docker image prune -f
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
FROM postgres:15-alpine
2+
3+
RUN apk add --no-cache \
4+
postgresql15-contrib \
5+
postgis \
6+
postgis-util

memory-infra/docker/dev/docker-compose.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ version: '3.8'
22

33
services:
44
postgres:
5-
image: postgis/postgis:15-3.3-arm64v8
5+
build:
6+
context: .
7+
dockerfile: Dockerfile.postgres
68
container_name: memory-postgres-dev
79
ports:
810
- "5433:5432"

0 commit comments

Comments
 (0)