mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-12 23:35:50 +00:00
Provide volume for database log-file in Docker
This commit is contained in:
parent
08d6cf77eb
commit
3e3770e5a9
@ -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 ################################################
|
||||
|
||||
5
logs/.gitignore
vendored
5
logs/.gitignore
vendored
@ -1,2 +1,5 @@
|
||||
*
|
||||
!.gitignore
|
||||
!.gitignore
|
||||
!database
|
||||
database/*
|
||||
!database/typeorm.backend.log
|
||||
|
||||
3
logs/database/typeorm.backend.log
Normal file
3
logs/database/typeorm.backend.log
Normal 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.
|
||||
Loading…
x
Reference in New Issue
Block a user