mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-25 02:44:18 +00:00
Change log directory location
This commit is contained in:
parent
50b21d056d
commit
3d93b033a2
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,4 +1,4 @@
|
|||||||
db.env
|
db.env
|
||||||
web.env
|
web.env
|
||||||
__pycache__
|
__pycache__
|
||||||
logs/
|
logs
|
||||||
|
@ -38,7 +38,7 @@ class DevelopmentConfig(Config):
|
|||||||
)
|
)
|
||||||
log_format = ("%(asctime)s - %(levelname)s - %(name)s - "
|
log_format = ("%(asctime)s - %(levelname)s - %(name)s - "
|
||||||
"%(filename)s - %(lineno)d - %(message)s")
|
"%(filename)s - %(lineno)d - %(message)s")
|
||||||
logging.basicConfig(filename='app/logs/opaque_flask.log', level='WARNING',
|
logging.basicConfig(filename='logs/opaque_flask.log', level='WARNING',
|
||||||
format=log_format, datefmt='%Y-%m-%d %H:%M:%S',
|
format=log_format, datefmt='%Y-%m-%d %H:%M:%S',
|
||||||
filemode='w')
|
filemode='w')
|
||||||
|
|
||||||
|
@ -19,6 +19,7 @@ services:
|
|||||||
- /mnt/opaque:/mnt/opaque
|
- /mnt/opaque:/mnt/opaque
|
||||||
- ./app:/home/opaque/app
|
- ./app:/home/opaque/app
|
||||||
- ./config.py:/home/opaque/config.py
|
- ./config.py:/home/opaque/config.py
|
||||||
|
- ./logs/opaque.log:/home/opaque/logs/opaque_flask.log
|
||||||
- ./migrations:/home/opaque/migrations
|
- ./migrations:/home/opaque/migrations
|
||||||
- ./opaque.py:/home/opaque/opaque.py
|
- ./opaque.py:/home/opaque/opaque.py
|
||||||
daemon:
|
daemon:
|
||||||
@ -31,8 +32,8 @@ services:
|
|||||||
env_file: db.env
|
env_file: db.env
|
||||||
image: gitlab.ub.uni-bielefeld.de:4567/sfb1288inf/opaque_daemon:latest
|
image: gitlab.ub.uni-bielefeld.de:4567/sfb1288inf/opaque_daemon:latest
|
||||||
volumes:
|
volumes:
|
||||||
|
- ./logs/opaque_daemon.log:/home/opaque_daemon/logs/opaque_daemon.log
|
||||||
- $HOME/.docker/config.json:/home/opaque_daemon/.docker/config.json
|
- $HOME/.docker/config.json:/home/opaque_daemon/.docker/config.json
|
||||||
- ./app/logs/opaque_daemon.log:/home/opaque_daemon/logs/opaque_daemon.log
|
|
||||||
db:
|
db:
|
||||||
deploy:
|
deploy:
|
||||||
placement:
|
placement:
|
||||||
|
Loading…
Reference in New Issue
Block a user