Adds volume and static files for logging from socket
This commit is contained in:
parent
238a6f393c
commit
ec4b0c0551
5 changed files with 13 additions and 0 deletions
|
|
@ -35,6 +35,8 @@ services:
|
||||||
hostname: socket
|
hostname: socket
|
||||||
volumes:
|
volumes:
|
||||||
- ${PROJECT_ROOT}/websocket:/app
|
- ${PROJECT_ROOT}/websocket:/app
|
||||||
|
- ${PROJECT_ROOT}/logs:/var/www/html/pathfinder/history/map
|
||||||
|
- ${PROJECT_ROOT}/static/socket/logrotate:/etc/logrotate.d/pathfinder
|
||||||
networks:
|
networks:
|
||||||
pf:
|
pf:
|
||||||
aliases:
|
aliases:
|
||||||
|
|
|
||||||
|
|
@ -35,6 +35,8 @@ services:
|
||||||
hostname: socket
|
hostname: socket
|
||||||
volumes:
|
volumes:
|
||||||
- ${PROJECT_ROOT}/websocket:/app
|
- ${PROJECT_ROOT}/websocket:/app
|
||||||
|
- ${PROJECT_ROOT}/logs:/var/www/html/pathfinder/history/map
|
||||||
|
- ${PROJECT_ROOT}/static/socket/logrotate:/etc/logrotate.d/pathfinder
|
||||||
networks:
|
networks:
|
||||||
pf:
|
pf:
|
||||||
aliases:
|
aliases:
|
||||||
|
|
|
||||||
1
logs/map_1.log
Normal file
1
logs/map_1.log
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
{"message":"system 'Ichoriya'","context":{"data":{"object":{"objId":9,"objName":"Ichoriya"},"character":{"id":525344969,"name":"atrophocy"},"channel":{"channelId":1,"channelName":"erw"},"main":[],"formatted":"Deleted system 'Ichoriya' #9"},"tag":"danger"},"level":200,"level_name":"INFO","channel":"map_1","datetime":"2022-02-07T12:26:24.171333+00:00","extra":{"path":"/api/rest/System/9","ip":"172.20.0.1","thumb":{"url":"https://images.evetech.net/Character/525344969_128.jpg"}}}
|
||||||
BIN
logs/map_1.log.1.gz
Normal file
BIN
logs/map_1.log.1.gz
Normal file
Binary file not shown.
8
static/socket/logrotate
Normal file
8
static/socket/logrotate
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
/var/www/html/pathfinder/history/map/*.log {
|
||||||
|
daily
|
||||||
|
missingok
|
||||||
|
rotate 14
|
||||||
|
compress
|
||||||
|
notifempty
|
||||||
|
endscript
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue