Skip to content

Commit

Permalink
fix: alloydb volume and config mount options
Browse files Browse the repository at this point in the history
  • Loading branch information
pseudoyu committed Nov 20, 2024
1 parent 22efb8f commit 881b803
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pkg/compose/compose.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,12 @@ func NewCompose(options ...Option) *Compose {
ContainerName: fmt.Sprintf("%s_alloydb", dockerComposeContainerNamePrefix),
Expose: []string{"5432"},
Image: "google/alloydbomni:latest",
Volumes: []string{fmt.Sprintf("%s:/alloydb/alloydb-data", alloydbVolume)},
Volumes: []string{
fmt.Sprintf("%s:/var/lib/postgresql/data", alloydbVolume),
"./config/postgresql.conf:/var/lib/postgresql/data/pgdata/postgresql.conf",
},
Environment: map[string]string{
"DATA_DIR": "/alloydb/alloydb-data",
"DATA_DIR": "/var/lib/postgresql/data",
"HOST_PORT": "5432",
"POSTGRES_PASSWORD": "password",
},
Expand Down

0 comments on commit 881b803

Please sign in to comment.