Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
services:
ferron:
image: ferronserver/ferron:2
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Docker image tag seems to be for Ferron 2, but it seems that you have opened the pull request for merging it into the development branch of Ferron 1.x (develop)... Isn't the develop-2.x the correct branch to merge this Docker Compose file into?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, apologies.

container_name: myferron
restart: always
ports:
- "80:80"
# network_mode: host #Optionally uncomment this if you are running already in a container like LXC
volumes:
# Configuration bind mount (host file → container)
- "./config/ferron.yaml:/etc/ferron.yaml"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ferron 2 uses KDL configuration (at /etc/ferron.kdl), but YAML configurations can also work with the Ferron 2 image...


# Persistent web root volume
- "ferron_web:/var/www/ferron"

# Log directory bind mount (host dir → container)
- "./logs:/var/log/ferron"

# Persistent storage for user management data (if used)
- "ferron_data:/var/lib/ferron"

volumes:
ferron_web:
ferron_data:

#Uncomment the following while runnning in bridge mode to add the ferron-proxy network (or any of your liking)
#networks:
#ferron-proxy: