mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-04 12:40:43 -06:00
Merge pull request #562 from patrickkostjens/develop
Use Docker volumes created by docker-compose to persist data
This commit is contained in:
commit
6442887c1a
16
docker-compose.override.yml
Normal file
16
docker-compose.override.yml
Normal file
@ -0,0 +1,16 @@
|
||||
version: '2'
|
||||
|
||||
services:
|
||||
firefly-db:
|
||||
volumes:
|
||||
- firefly-dev-storage:/var/lib/mysql
|
||||
firefly-app:
|
||||
volumes:
|
||||
- .:/var/www/firefly-iii
|
||||
environment:
|
||||
- INIT_DATABASE=yes
|
||||
- FF_APP_ENV=development
|
||||
|
||||
volumes:
|
||||
firefly-dev-storage:
|
||||
driver: local
|
12
docker-compose.prod.yml
Normal file
12
docker-compose.prod.yml
Normal file
@ -0,0 +1,12 @@
|
||||
version: '2'
|
||||
|
||||
services:
|
||||
firefly-app:
|
||||
environment:
|
||||
- FF_APP_ENV=production
|
||||
volumes:
|
||||
- firefly-app-storage:/var/www/firefly-iii/storage
|
||||
|
||||
volumes:
|
||||
firefly-app-storage:
|
||||
driver: local
|
@ -13,16 +13,13 @@ services:
|
||||
|
||||
firefly-app:
|
||||
image: firefly-iii
|
||||
build:
|
||||
context: .
|
||||
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
|
||||
ports:
|
||||
- "80:80"
|
||||
links:
|
||||
|
Loading…
Reference in New Issue
Block a user