mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Use local folders in containers created by docker-compose to persist data
This commit is contained in:
parent
1637190c27
commit
1feae802c2
1
.gitignore
vendored
1
.gitignore
vendored
@ -2,6 +2,7 @@
|
||||
/public/storage
|
||||
/vendor
|
||||
/.idea
|
||||
/firefly-db-storage
|
||||
Homestead.json
|
||||
Homestead.yaml
|
||||
.env
|
||||
|
@ -9,25 +9,22 @@ services:
|
||||
- MYSQL_PASSWORD=firefly_db_secret
|
||||
- MYSQL_RANDOM_ROOT_PASSWORD=yes
|
||||
volumes:
|
||||
- firefly-storage:/var/lib/mysql
|
||||
- ./firefly-db-storage:/var/lib/mysql
|
||||
|
||||
firefly-app:
|
||||
image: firefly-iii
|
||||
build:
|
||||
context: .
|
||||
container_name: firefly-iii
|
||||
build: .
|
||||
environment:
|
||||
- INIT_DATABASE=yes
|
||||
- FF_DB_HOST=firefly-db
|
||||
- FF_DB_NAME=firefly_db
|
||||
- FF_DB_USER=firefly_db
|
||||
- FF_DB_PASSWORD=firefly_db_secret
|
||||
- FF_APP_KEY=SomeRandomStringOf32CharsExactly
|
||||
- FF_APP_ENV=development
|
||||
- FF_APP_ENV=production
|
||||
ports:
|
||||
- "80:80"
|
||||
links:
|
||||
- firefly-db
|
||||
|
||||
volumes:
|
||||
firefly-storage:
|
||||
driver: local
|
||||
volumes:
|
||||
- ./storage:/var/www/firefly-iii/storage
|
||||
|
Loading…
Reference in New Issue
Block a user