Provide volume for database log-file in Docker

This commit is contained in:
Wolfgang Huß 2022-07-21 13:33:10 +02:00
parent 08d6cf77eb
commit 3e3770e5a9
3 changed files with 10 additions and 1 deletions

View File

@ -132,6 +132,9 @@ services:
# Application only envs
#env_file:
# - ./frontend/.env
volumes:
# <host_machine_directy>:<container_directory> mirror bidirectional path in local context with path in Docker container
- ./logs/database/typeorm.backend.log:/app/typeorm.backend.log
#########################################################
## NGINX ################################################

3
logs/.gitignore vendored
View File

@ -1,2 +1,5 @@
*
!.gitignore
!database
database/*
!database/typeorm.backend.log

View File

@ -0,0 +1,3 @@
# This has to be exitst in git!
# If not then the mirroring with Docker Compose volumes will fail and a folder will be created with this name instead.
# But then the type of folder and the type file of the file to mirror will lead to a type error.