Adds logs mount to pf service and adds logrotate
This commit is contained in:
parent
bc27392df9
commit
c62062f956
5 changed files with 7 additions and 4 deletions
|
|
@ -13,8 +13,10 @@ RUN composer self-update 2.1.8
|
|||
RUN composer install
|
||||
|
||||
FROM trafex/alpine-nginx-php7:ba1dd422
|
||||
RUN apk update && apk add --no-cache busybox-suid sudo php7-redis php7-pdo php7-pdo_mysql php7-fileinfo shadow gettext bash apache2-utils
|
||||
|
||||
RUN apk update && apk add --no-cache busybox-suid sudo php7-redis php7-pdo php7-pdo_mysql php7-fileinfo shadow gettext bash apache2-utils logrotate
|
||||
|
||||
COPY static/logrotate/pathfinder /etc/logrotate.d/pathfinder
|
||||
COPY static/nginx/nginx.conf /etc/nginx/templateNginx.conf
|
||||
# we need to create sites_enabled directory in order for entrypoint.sh being able to copy file after envsubst
|
||||
RUN mkdir -p /etc/nginx/sites_enabled/
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
@ -69,6 +68,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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue