Skip to content

Commit

Permalink
chore(docker): option to persist data on startup (#2046)
Browse files Browse the repository at this point in the history
Ref: SRX-13CLKE
  • Loading branch information
AminSlk authored Oct 15, 2024
1 parent 4f76ce2 commit eabf9bf
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,11 @@ builder:
compose-down:
docker compose down

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

kuberpult-earthly: compose-down
kuberpult-freshdb: compose-down
earthly +all-services --UID=$(USER_UID)
docker compose up

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 eabf9bf

Please sign in to comment.