Skip to content

Instantly share code, notes, and snippets.

@FoxNeo
Created September 2, 2021 20:14
Show Gist options
  • Save FoxNeo/c4c9e7e7a2905e5fdcd000bce4fda938 to your computer and use it in GitHub Desktop.
Save FoxNeo/c4c9e7e7a2905e5fdcd000bce4fda938 to your computer and use it in GitHub Desktop.
This is a sample docker-compose.yml file

Docker-compose fire-fly-III

docker-compose.yml

version: '3.3'

services:
  app:
    image: fireflyiii/core:latest
    restart: unless-stopped
    volumes:
      - firefly_iii_upload:/var/www/html/storage/upload
    env_file: .env
    ports:
      - 8080:8080
    depends_on:
      - db
  db:
    image: mariadb
    restart: unless-stopped
    environment:
      - MYSQL_RANDOM_ROOT_PASSWORD=yes
      - MYSQL_USER=firefly
      - MYSQL_PASSWORD=[your_password]
      - MYSQL_DATABASE=firefly
    volumes:
      - firefly_iii_db:/var/lib/mysql
volumes:
   firefly_iii_upload:
   firefly_iii_db:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment