Skip to content

Commit

Permalink
Removed healthcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
jaydrogers committed Aug 29, 2024
1 parent ec3b6e4 commit 7fdd971
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
12 changes: 0 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ The image is based on `ubuntu:24.04`, providing a stable and up-to-date environm
- TLS encryption support
- Customizable configuration via environment variables
- Self-signed SSL certificate generation
- Health check for container status monitoring

## Environment Variables

Expand Down Expand Up @@ -133,17 +132,6 @@ VALUES (
);
```

## Healthcheck

The container includes a healthcheck that verifies if the ProFTPD server is running on port 21. The healthcheck configuration is as follows:

```dockerfile
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD nc -z localhost 21 || exit 1
```

This checks the ProFTPD service every 30 seconds, with a 10-second timeout and 3 retries before marking the container as unhealthy.

## Resources
- **[Discord](https://serversideup.net/discord)** for friendly support from the community and the team.
- **[GitHub](https://github.com/serversideup/docker-proftpd)** for source code, bug reports, and project management.
Expand Down
5 changes: 1 addition & 4 deletions src/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,4 @@ RUN mkdir -p ${FTP_USERS_DIR} && \
EXPOSE 21 990 60000-60100

# Start ProFTPD
CMD ["proftpd", "--nodaemon"]

HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD nc -z localhost 21 || exit 1
CMD ["proftpd", "--nodaemon"]

0 comments on commit 7fdd971

Please sign in to comment.