Skip to content

Commit

Permalink
Adding raspberrypi docker-compose example (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
iloveitaly authored Jan 17, 2022
1 parent d6d6c22 commit a6b52b4
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .examples/raspberrypi/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
APP_KEY=app_key
APP_URL="raspberrypi.local:8080"
DB_HOST=db

MAIL_MAILER=smtp
MAIL_HOST=smtp.domain.com
MAIL_PORT=587
MAIL_USERNAME=username
MAIL_PASSWORD=password
MAIL_ENCRYPTION=tls
MAIL_FROM_ADDRESS=[email protected]
MAIL_FROM_NAME=Monica
40 changes: 40 additions & 0 deletions .examples/raspberrypi/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
version: "3.4"

services:
app:
image: monica
env_file: .env
depends_on:
- db
ports:
- 8080:80
volumes:
- data:/var/www/html/storage
restart: always

cron:
image: monica
env_file: .env
restart: always
volumes:
- data:/var/www/html/storage
command: cron.sh
depends_on:
- db

db:
image: jsurf/rpi-mariadb:latest
environment:
MYSQL_ROOT_PASSWORD: secret
MYSQL_DATABASE: monica
MYSQL_USER: homestead
MYSQL_PASSWORD: secret
volumes:
- mysql:/var/lib/mysql
restart: always

volumes:
data:
name: data
mysql:
name: mysql
1 change: 1 addition & 0 deletions .examples/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ In this section you will find some examples about how to use monica's docker ima
| [`nginx-proxy-self-signed-ssl`](nginx-proxy-self-signed-ssl) | shows you how to run monica with a self signed ssl certificate.
| [`nginx-proxy`](nginx-proxy) | shows you how to run monica with https and generate a [Let's Encrypt](https://letsencrypt.org/) certificate.
| [`maxsize`](maxsize) | shows you how to adapt the max upload size of you php settings in the app container.
| [`raspberrypi`](raspberrypi) | shows you how to host monica on a raspberry pi.


## Run with docker-compose
Expand Down

0 comments on commit a6b52b4

Please sign in to comment.