Skip to content

Commit

Permalink
Merge tag 'stretch-slim'
Browse files Browse the repository at this point in the history
  • Loading branch information
kuanfandevops committed Jan 25, 2019
2 parents 3679eec + 58b3703 commit 2e95aae
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 16 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM debian:jessie
MAINTAINER http://m-ko.de Markus Kosmal <[email protected]>
FROM debian:stretch-slim
LABEL author="http://m-ko.de Markus Kosmal <[email protected]>"

# Debian Base to use
ENV DEBIAN_VERSION jessie
ENV DEBIAN_VERSION stretch

# initial install of av daemon
RUN echo "deb http://http.debian.net/debian/ $DEBIAN_VERSION main contrib non-free" > /etc/apt/sources.list && \
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2018 Markus Kosmal
Copyright (c) 2019 Markus Kosmal

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
9 changes: 3 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

## About
Dockerized open source antivirus daemons for use with
- file sharing containers like [ownCloud](https://hub.docker.com/_/owncloud/) or
- file sharing containers like [Nextcloud](https://hub.docker.com/_/nextcloud/) or
- to use it via a [REST](https://en.wikipedia.org/wiki/Representational_state_transfer) proxy like [@solita](https://github.com/solita) made [clamav-rest](https://github.com/solita/clamav-rest) or
- to directly connect to *clamav* via TCP port `3310`

Expand All @@ -22,11 +22,8 @@ is listening on exposed port `3310`.
or linked (recommended)

docker run -d --name av mkodockx/docker-clamav
docker run -d --link av:clamavd application-with-clamdscan-or-something
docker run -d --link av:av application-with-clamdscan-or-something

## docker-compose

See example with OwnCloud at [docker-compose.yml](docker-compose.yml).

## More Info
Inspired by work of [dinkel](https://github.com/dinkel)
See example with Nextcloud at [docker-compose.yml](https://github.com/mko-x/docker-clamav/blob/master/docker-compose.yml).
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
theme: jekyll-theme-minimal
22 changes: 16 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,25 @@
# example docker-compose configuration file for using mkodockx/docker-clamav
version: "3"
services:
antivirus:
av:
image: mkodockx/docker-clamav
ports:
- "3310"
networks:
- backend

owncloud:
image: owncloud
app:
image: nextcloud:fpm-alpine
restart: always
links:
- av:antivirus
- av:av
depends_on:
- mysql
volumes:
- nextcloud:/var/www/html
environment:
MYSQL_HOST: mysql
MYSQL_DATABASE: nextcloud
MYSQL_USER: nextcloud
MYSQL_PASSWORD:
ports:
- 8080:80
networks:
Expand All @@ -24,6 +31,9 @@ services:
restart: always
environment:
MYSQL_ROOT_PASSWORD: example
MYSQL_DATABASE: nextcloud
MYSQL_USER: nextcloud
MYSQL_PASSWORD:
networks:
- backend

Expand Down

0 comments on commit 2e95aae

Please sign in to comment.