Skip to content
Open
Show file tree
Hide file tree
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
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM ubuntu:20.04
RUN apt-get update && \
apt-get install -y \
gcc \
make \
&& rm -rf /var/lib/apt/lists/*
COPY . /app
RUN chmod +x /app/entrypoint.sh
RUN cd /app && make && make install
ENTRYPOINT [ "/app/entrypoint.sh"]
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,23 @@ To use fiche you have to have netcat installed. You probably already have it - t
```
sudo make install
```
## Docker

### Running with Docker

There is a Dockerfile and a docker-compose.yml in the repository.
You can run fiche with docker by cloning the repository with:
```bash
git clone https://github.com/solusipse/fiche
```
Edit the docker-compose.yml to your needs (change the Domain, Port and Directory).
Finaly you can run fiche by typing
```
docker-compose up -d
```
in your terminal in the repositories folder.

After that, fiche should be running at the specified port and you can use a webserver to serve your files from the folder you specified on the Dockerhost.

### Using Ports on FreeBSD

Expand Down
10 changes: 10 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
services:
fiche:
build: .
volumes:
- /mnt/hdd/docker/fiche/data:/home/data
ports:
- 9999:9999
environment:
- DOMAIN=tbin.eu #change to your needs
restart: always
2 changes: 2 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
fiche -S -d $DOMAIN -o /home/data -l /home/data/log.txt