Skip to content

Commit b67f3ca

Browse files
authored
Added Docker Compose (#1372)
* Added docker compose * Fixed typos in comments * Added healtchcheck and made changes after review.
1 parent 2e4ac97 commit b67f3ca

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

docker-compose.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
services:
2+
tinyfilemanager:
3+
build: . # Uncomment if you want to build locally instead of pulling
4+
# image: tinyfilemanager/tinyfilemanager:latest ### If you want to run a Docker container on an image from Docker Hub, comment on the upper line 'build: .'
5+
container_name: tinyfilemanager
6+
restart: unless-stopped
7+
ports:
8+
- "8080:80"
9+
volumes:
10+
- ./data:/var/www/html/data ### You can change "./data:" to your path if you want to keep your data in a dedicated directory.
11+
- ./config.php:/var/www/html/config.php ### Uncomment if you are using config.php
12+
13+
environment:
14+
TZ: UTC
15+
16+
healthcheck:
17+
test: ["CMD", "curl", "-f", "http://localhost/"]
18+
interval: 30s
19+
timeout: 10s
20+
retries: 3

0 commit comments

Comments
 (0)