Skip to content

Commit

Permalink
Merge pull request #299 from YoussefSalameh/Postgres_PersistData
Browse files Browse the repository at this point in the history
Add Volumes for postgres when generating docker compose
  • Loading branch information
Romakita committed Dec 12, 2022
2 parents 20f5f99 + a790759 commit 592ffa7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/cli-core/src/services/CliDockerComposeYaml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export class CliDockerComposeYaml {
value = {
image: "postgres:9.6.1",
ports: ["5432:5432"],
volumes: ["./pgdata:/var/lib/postgresql/data"],
environment: {
POSTGRES_USER: "test",
POSTGRES_PASSWORD: "test",
Expand Down

0 comments on commit 592ffa7

Please sign in to comment.