Skip to content

Commit

Permalink
🎉 Init Project
Browse files Browse the repository at this point in the history
  • Loading branch information
zagotec committed Nov 5, 2023
1 parent 1b89b5d commit bf5ba54
Show file tree
Hide file tree
Showing 4 changed files with 115 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Build and Publish

on:
push:
branches:
- master

jobs:
push_to_registry:
name: Push Docker image to Docker Hub
environment: master
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3

- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v3
with:
images: zarix/roundcube

- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ secrets.DOCKERHUB_USERNAME }}/roundcube:latest
labels: ${{ steps.meta.outputs.labels }}

- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
23 changes: 23 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
FROM roundcube/roundcubemail:latest

RUN set -ex; \
apt-get update; \
apt-get install -y --no-install-recommends \
git \
; \
\
composer \
--working-dir=/usr/src/roundcubemail/ \
--prefer-dist \
--prefer-stable \
--update-no-dev \
--no-interaction \
--optimize-autoloader \
require \
johndoh/contextmenu \
weird-birds/thunderbird_labels \
roundcube/carddav \
kitist/html5_notifier \
roundcube/carddav \
roundcube/customizri # \
# kolab/calendar
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Roundcube

# Setup

## via Compose

```
wget https://raw.githubusercontent.com/zarix/roundcube_docker/main/docker-compose.yml
nano docker-compose.yml
docker compose up -d
```

### Start

```
docker compose up -d
```
Point your browser to http://localhost and login using the username and password.
36 changes: 36 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
version: "3"
services:

roundcube:
image: zarix/roundcube:latest
# build:
# context: .
# volumes:
# - ./config.custom.php:/var/roundcube/config/config.custom.php
environment:
- ROUNDCUBEMAIL_DEFAULT_HOST=tls://mail
- ROUNDCUBEMAIL_DEFAULT_PORT=143
- ROUNDCUBEMAIL_SMTP_SERVER=tls://mail
- ROUNDCUBEMAIL_SMTP_PORT=25
- ROUNDCUBEMAIL_PLUGINS=archive,html5_notifier,thunderbird_labels,zipdownload,managesieve,carddav,customizr
- ROUNDCUBEMAIL_DB_TYPE=mysql
- ROUNDCUBEMAIL_DB_HOST=roundcube_db
- ROUNDCUBEMAIL_DB_PORT=3306
- ROUNDCUBEMAIL_DB_USER=roundcube
- ROUNDCUBEMAIL_DB_PASSWORD=roundcube
- ROUNDCUBEMAIL_DB_NAME=roundcube
ports:
- 80:80
depends_on:
- roundcube_db"

roundcube_db:
image: mysql
restart: always
environment:
- MYSQL_ROOT_PASSWORD=roundcube
- MYSQL_USER=roundcube
- MYSQL_PASSWORD=roundcube
- MYSQL_DATABASE=roundcube
volumes:
- ./roundcube/mysql:/var/lib/mysql

0 comments on commit bf5ba54

Please sign in to comment.