Skip to content

Commit

Permalink
#46 mod compose.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
kynmh69 committed Oct 4, 2024
1 parent 71098c2 commit 43f4540
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions compose.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
services:
database:
image: postgres:16
image: postgres:17
volumes:
- psql_data:/var/lib/postgresql/data:rw
restart: always
environment:
- TZ=Asia/Tokyo
- POSTGRES_USER=app
Expand All @@ -13,6 +12,12 @@ services:
- net-1
ports:
- "5432:5432"
healthcheck:
test: "pg_isready -U app"
interval: 10s
timeout: 5s
retries: 100
start_period: 10s

data_updater:
build:
Expand All @@ -21,7 +26,8 @@ services:
environment:
- TZ=Asia/Tokyo
depends_on:
- database
database:
condition: service_healthy
networks:
- net-1

Expand All @@ -33,7 +39,8 @@ services:
- TZ=Asia/Tokyo
- LOG_LEVEL=debug
depends_on:
- database
database:
condition: service_healthy
networks:
- net-1
volumes:
Expand All @@ -49,7 +56,8 @@ services:
- TZ=Asia/Tokyo
- LOG_LEVEL=info
depends_on:
- database
database:
condition: service_healthy
networks:
- net-1
volumes:
Expand Down

0 comments on commit 43f4540

Please sign in to comment.