Skip to content

Commit

Permalink
add: config.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
matbrgz committed Sep 22, 2023
1 parent 720ee85 commit 80ceb34
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions templates/komiser/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ export function generate(input: Input): Output {
port: 3000,
},
],
deploy: {
command: "komiser start",
},
mounts: [
{
type: "volume",
Expand All @@ -31,6 +34,14 @@ export function generate(input: Input): Output {
name: "backup",
mountPath: "/backup",
},
{
type: "file",
content: [
"[postgres]",
`uri=postgres://postgres:${databasePassword}@$(PROJECT_NAME)_${input.databaseServiceName}:5432/$(PROJECT_NAME)?sslmode=disable`,
].join("\n"),
mountPath: "/data/config.toml",
},
],
},
});
Expand Down

0 comments on commit 80ceb34

Please sign in to comment.