mirror of
https://github.com/invoiceninja/dockerfiles.git
synced 2026-01-28 17:57:09 +01:00
Compare commits
13 Commits
v5.10.55-r
...
5.10.56
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
394c4c8b5e | ||
|
|
9ed63a6762 | ||
|
|
cb6d6d46c2 | ||
|
|
3b0e475de6 | ||
|
|
d5bb90fa04 | ||
|
|
1b62d86659 | ||
|
|
4431abcb88 | ||
|
|
d05e55a24e | ||
|
|
34e5043317 | ||
|
|
6f92d1c155 | ||
|
|
11330003a2 | ||
|
|
47b015af7c | ||
|
|
c6648a8511 |
5
debian/.env
vendored
5
debian/.env
vendored
@@ -8,7 +8,10 @@ PHANTOMJS_PDF_GENERATION=false
|
|||||||
PDF_GENERATOR=snappdf
|
PDF_GENERATOR=snappdf
|
||||||
TRUSTED_PROXIES='*'
|
TRUSTED_PROXIES='*'
|
||||||
|
|
||||||
QUEUE_CONNECTION=database
|
QUEUE_CONNECTION=redis
|
||||||
|
|
||||||
|
|
||||||
|
# FILESYSTEM_DISK=local
|
||||||
|
|
||||||
# DB connection
|
# DB connection
|
||||||
DB_HOST=mysql
|
DB_HOST=mysql
|
||||||
|
|||||||
6
debian/Dockerfile
vendored
6
debian/Dockerfile
vendored
@@ -117,8 +117,7 @@ WORKDIR /var/www/html
|
|||||||
RUN set -eux; \
|
RUN set -eux; \
|
||||||
DOWNLOAD_URL=$(curl -s "https://api.github.com/repos/invoiceninja/invoiceninja/releases/latest" | \
|
DOWNLOAD_URL=$(curl -s "https://api.github.com/repos/invoiceninja/invoiceninja/releases/latest" | \
|
||||||
grep -o '"browser_download_url": "[^"]*invoiceninja.tar"' | cut -d '"' -f 4) && \
|
grep -o '"browser_download_url": "[^"]*invoiceninja.tar"' | cut -d '"' -f 4) && \
|
||||||
curl -L "$DOWNLOAD_URL" | tar -xzf - -C /var/www/html --overwrite && \
|
curl -L "$DOWNLOAD_URL" | tar -xvz -C /var/www/html && \
|
||||||
rm -rf /var/www/html/ui && \
|
|
||||||
chown -R www-data:www-data /var/www/html
|
chown -R www-data:www-data /var/www/html
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
@@ -129,7 +128,8 @@ RUN composer dump-autoload --optimize \
|
|||||||
&& php artisan optimize \
|
&& php artisan optimize \
|
||||||
&& php artisan view:cache \
|
&& php artisan view:cache \
|
||||||
&& php artisan config:cache \
|
&& php artisan config:cache \
|
||||||
&& php artisan route:cache
|
&& php artisan route:cache \
|
||||||
|
&& php artisan storage:link
|
||||||
|
|
||||||
# Setup supervisor
|
# Setup supervisor
|
||||||
COPY supervisor/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
COPY supervisor/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
||||||
|
|||||||
19
debian/docker-compose.yml
vendored
19
debian/docker-compose.yml
vendored
@@ -8,7 +8,7 @@ x-logging: &default-logging
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
image: invoiceninja/invoiceninja-debian:5.10.55-d
|
image: invoiceninja/invoiceninja-debian:latest
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
env_file:
|
env_file:
|
||||||
- ./.env
|
- ./.env
|
||||||
@@ -16,7 +16,7 @@ services:
|
|||||||
- ./.env:/var/www/html/.env
|
- ./.env:/var/www/html/.env
|
||||||
- app_storage:/var/www/html/storage
|
- app_storage:/var/www/html/storage
|
||||||
- app_cache:/var/www/html/bootstrap/cache
|
- app_cache:/var/www/html/bootstrap/cache
|
||||||
- public_files:/var/www/html/public
|
- public_storage:/var/www/html/public/storage
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
- app-network
|
- app-network
|
||||||
@@ -35,14 +35,13 @@ services:
|
|||||||
image: nginx:alpine
|
image: nginx:alpine
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- "8013:80"
|
- "80:80"
|
||||||
volumes:
|
volumes:
|
||||||
- ./nginx/conf.d:/etc/nginx/conf.d:ro
|
- ./nginx/conf.d:/etc/nginx/conf.d:ro
|
||||||
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
|
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
|
||||||
- type: volume
|
volumes_from:
|
||||||
source: public_files
|
- app
|
||||||
target: /var/www/html/public
|
|
||||||
read_only: true
|
|
||||||
networks:
|
networks:
|
||||||
- app-network
|
- app-network
|
||||||
depends_on:
|
depends_on:
|
||||||
@@ -103,13 +102,11 @@ networks:
|
|||||||
volumes:
|
volumes:
|
||||||
app_storage:
|
app_storage:
|
||||||
driver: local
|
driver: local
|
||||||
app_public:
|
|
||||||
driver: local
|
|
||||||
app_cache:
|
app_cache:
|
||||||
driver: local
|
driver: local
|
||||||
|
public_storage:
|
||||||
|
driver: local # Persistent storage for user files
|
||||||
mysql_data:
|
mysql_data:
|
||||||
driver: local
|
driver: local
|
||||||
redis_data:
|
redis_data:
|
||||||
driver: local
|
driver: local
|
||||||
public_files:
|
|
||||||
driver: local
|
|
||||||
|
|||||||
2
debian/php/php-fpm.conf
vendored
2
debian/php/php-fpm.conf
vendored
@@ -3,7 +3,7 @@ user = www-data
|
|||||||
group = www-data
|
group = www-data
|
||||||
listen = 0.0.0.0:9000
|
listen = 0.0.0.0:9000
|
||||||
pm = dynamic
|
pm = dynamic
|
||||||
pm.max_children = 5
|
pm.max_children = 10
|
||||||
pm.start_servers = 2
|
pm.start_servers = 2
|
||||||
pm.min_spare_servers = 1
|
pm.min_spare_servers = 1
|
||||||
pm.max_spare_servers = 3
|
pm.max_spare_servers = 3
|
||||||
14
debian/scripts/init.sh
vendored
14
debian/scripts/init.sh
vendored
@@ -36,20 +36,22 @@ mkdir -p \
|
|||||||
/var/www/html/storage/framework/sessions \
|
/var/www/html/storage/framework/sessions \
|
||||||
/var/www/html/storage/framework/views \
|
/var/www/html/storage/framework/views \
|
||||||
/var/www/html/storage/logs \
|
/var/www/html/storage/logs \
|
||||||
/var/www/html/public/uploads
|
/var/www/html/public/storage
|
||||||
|
|
||||||
# Set directory permissions without changing ownership
|
# Set directory permissions without changing ownership
|
||||||
chmod -R 775 \
|
chmod -R 775 \
|
||||||
/var/www/html/storage \
|
/var/www/html/storage \
|
||||||
/var/www/html/bootstrap/cache \
|
/var/www/html/bootstrap/cache \
|
||||||
/var/www/html/public/uploads
|
/var/www/html/public/storage
|
||||||
|
|
||||||
|
chown -R www-data:www-data /var/www/html/storage
|
||||||
|
|
||||||
# Clear and cache config in production
|
# Clear and cache config in production
|
||||||
if [ "$APP_ENV" = "production" ]; then
|
if [ "$APP_ENV" = "production" ]; then
|
||||||
php artisan config:cache
|
gosu www-data php artisan config:cache
|
||||||
php artisan optimize
|
gosu www-data php artisan optimize
|
||||||
php artisan package:discover
|
gosu www-data php artisan package:discover
|
||||||
php artisan migrate --force
|
gosu www-data php artisan migrate --force
|
||||||
|
|
||||||
echo "Checking initialization status..."
|
echo "Checking initialization status..."
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user