Adds logs mount to pf service and adds logrotate

This commit is contained in:
Sam ONeill 2022-02-08 13:37:06 +13:00
parent bc27392df9
commit c62062f956
5 changed files with 7 additions and 4 deletions

View file

@ -17,5 +17,6 @@ cp ./development/xdebug.ini ./static/php/xdebug.ini
mkdir -p .vscode && cp ./development/launch.json ./.vscode/launch.json
# seed .env file with dev presets
echo "path=\"$(pwd)\"" > ./.env
echo "PROJECT_ROOT=\"$(pwd)\"" > ./.env
cat ./development/.env.development >> ./.env
echo "Remember to set your CCP SSO Client and Secret keys"

View file

@ -36,7 +36,6 @@ services:
volumes:
- ${PROJECT_ROOT}/websocket:/app
- ${PROJECT_ROOT}/logs:/var/www/html/pathfinder/history/map
- ${PROJECT_ROOT}/static/socket/logrotate:/etc/logrotate.d/pathfinder
networks:
pf:
aliases:
@ -68,6 +67,7 @@ services:
- ${PROJECT_ROOT}/config/pathfinder/config.ini:/var/www/html/pathfinder/app/templateConfig.ini
- ${PROJECT_ROOT}/config/pathfinder/pathfinder.ini:/var/www/html/pathfinder/app/pathfinder.ini
- ${PROJECT_ROOT}/config/pathfinder/plugin.ini:/var/www/html/pathfinder/app/plugin.ini
- ${PROJECT_ROOT}/logs:/var/www/html/pathfinder/history/map
depends_on:
- pfdb
- pf-redis