🐳 updated docker-compose
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
This commit is contained in:
parent
fdeece28ab
commit
f320f85d0a
2 changed files with 5 additions and 1 deletions
|
@ -45,7 +45,7 @@ func InsertUserAnswers(respondentId int, allAnswers string) (error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Write answers to backup-file
|
// Write answers to backup-file
|
||||||
file, err := os.OpenFile("cmd/db/backups/answer_backup.csv", os.O_APPEND|os.O_WRONLY|os.O_CREATE, 0600)
|
file, err := os.OpenFile("cmd/db/backups/answer_backup.csv", os.O_APPEND|os.O_WRONLY|os.O_CREATE, 0777)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println(err)
|
fmt.Println(err)
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,6 +16,10 @@ services:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
image: helseveileder
|
image: helseveileder
|
||||||
|
volumes:
|
||||||
|
- ./cmd/db/backups/answer_backup.csv
|
||||||
|
- ./cmd/db/backups/bugreport_backup.csv
|
||||||
|
- ./cmd/db/backups/evaluation_backup.csv
|
||||||
depends_on:
|
depends_on:
|
||||||
- postgres
|
- postgres
|
||||||
nginx:
|
nginx:
|
||||||
|
|
Reference in a new issue