2023-02-15 21:45:31 +00:00
|
|
|
services:
|
2024-11-04 12:08:51 +00:00
|
|
|
|
2023-02-15 21:45:31 +00:00
|
|
|
app:
|
|
|
|
image: fireflyiii/core:latest
|
|
|
|
container_name: firefly
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
2023-02-25 13:09:52 +00:00
|
|
|
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/firefly/upload:/var/www/html/storage/upload
|
2023-02-15 21:45:31 +00:00
|
|
|
env_file: .env
|
|
|
|
ports:
|
|
|
|
- 80:8080
|
2024-11-04 12:08:51 +00:00
|
|
|
expose:
|
|
|
|
- 8080
|
2023-02-15 21:45:31 +00:00
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
|
|
|
|
db:
|
2024-11-04 12:08:51 +00:00
|
|
|
image: mariadb:11.5
|
2023-02-15 21:45:31 +00:00
|
|
|
container_name: firefly-db
|
|
|
|
restart: unless-stopped
|
|
|
|
environment:
|
|
|
|
- MYSQL_RANDOM_ROOT_PASSWORD=yes
|
|
|
|
- MYSQL_USER=firefly
|
|
|
|
- MYSQL_PASSWORD=MySecretDatabasePassword # if changed --> also update in .env file
|
|
|
|
- MYSQL_DATABASE=firefly
|
|
|
|
volumes:
|
2024-11-04 12:08:51 +00:00
|
|
|
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/firefly/mysql:/var/lib/mysql
|