mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
New docker things.
This commit is contained in:
parent
011e28e8c2
commit
27d533dd5b
@ -46,12 +46,7 @@ COPY . $FIREFLY_PATH
|
|||||||
|
|
||||||
RUN chown -R www-data:www-data /var/www && chmod -R 775 $FIREFLY_PATH/storage
|
RUN chown -R www-data:www-data /var/www && chmod -R 775 $FIREFLY_PATH/storage
|
||||||
|
|
||||||
RUN cat .env.docker | envsubst > .env && cat .env
|
RUN composer install --prefer-dist --no-dev --no-scripts
|
||||||
RUN composer install --prefer-dist --no-dev
|
|
||||||
RUN composer dump-autoload
|
|
||||||
RUN php artisan optimize
|
|
||||||
RUN php artisan package:discover
|
|
||||||
RUN php artisan firefly:instructions install
|
|
||||||
|
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
|
||||||
|
@ -20,6 +20,7 @@ services:
|
|||||||
- FF_DB_USER=firefly_db
|
- FF_DB_USER=firefly_db
|
||||||
- FF_DB_PASSWORD=firefly_db_secret
|
- FF_DB_PASSWORD=firefly_db_secret
|
||||||
- FF_APP_KEY=SomeRandomStringOf32CharsExactly
|
- FF_APP_KEY=SomeRandomStringOf32CharsExactly
|
||||||
|
- FF_APP_ENV=production
|
||||||
ports:
|
ports:
|
||||||
- "80:80"
|
- "80:80"
|
||||||
links:
|
links:
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# cat .env.docker | envsubst > .env
|
|
||||||
|
|
||||||
|
cat .env.docker | envsubst > .env && cat .env
|
||||||
|
composer dump-autoload
|
||||||
|
php artisan optimize
|
||||||
|
php artisan package:discover
|
||||||
|
php artisan firefly:instructions install
|
||||||
exec apache2-foreground
|
exec apache2-foreground
|
||||||
|
Loading…
Reference in New Issue
Block a user