Skip to content

Commit

Permalink
chore(docker): option to persist data on startup
Browse files Browse the repository at this point in the history
Ref: SRX-13CLKE
  • Loading branch information
AminSlk committed Oct 15, 2024
1 parent 5e45cc4 commit ea2dfcd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ kuberpult-earthly: compose-down
earthly +all-services --UID=$(USER_UID)
docker compose up

kuberpult-earthly-persist: compose-down
earthly +all-services --UID=$(USER_UID)
docker compose -f docker-compose.yml -f docker-compose.persist.yml up

all-services:
earthly +all-services --tag=$(VERSION)

Expand Down
8 changes: 8 additions & 0 deletions docker-compose.persist.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
services:
postgres:
volumes:
- "pgdata:/var/lib/postgresql/data"

volumes:
pgdata:
driver: local

0 comments on commit ea2dfcd

Please sign in to comment.