This commit is contained in:
whitney 2023-11-05 13:35:34 -08:00
parent 2ac9cd1580
commit 6c7a1d4252
2 changed files with 58 additions and 0 deletions

17
monica/README.md Normal file
View File

@ -0,0 +1,17 @@
# Monica
Reference: https://hub.docker.com/_/monica
### Installation
Using the default dockerfile provided, change the following
- ports - default port will collide with traefik. Use something like 8022.
- APP_KEY - generated with `echo -n 'base64:'; openssl rand -base64 32` like they suggest.
- env vars - change default user/pw
- Add traefik tags.
Run everything & follow instructions.

41
monica/docker-compose.yml Normal file
View File

@ -0,0 +1,41 @@
version: "3.4"
services:
app:
image: monica
depends_on:
- db
ports:
- 8022:80
environment:
- APP_KEY=base64:Hl8b+vnvibkFbOR0CPQVmt5mLCB0mnXqfo8aIbNPRxo=
- DB_HOST=db
- DB_USERNAME=monica
- DB_PASSWORD=secret
volumes:
- data:/var/www/html/storage
restart: always
labels:
- traefik.http.routers.monica.rule=Host(`monica.whitney.rip`)
- traefik.http.routers.monica.tls=true
- traefik.http.routers.monica.tls.certresolver=lets-encrypt
- traefik.http.services.monica.loadbalancer.server.port=8022
- traefik.port=8022
db:
image: mysql:5.7
environment:
- MYSQL_RANDOM_ROOT_PASSWORD=true
- MYSQL_DATABASE=monica
- MYSQL_USER=monica
- MYSQL_PASSWORD=secret
volumes:
- mysql:/var/lib/mysql
restart: always
volumes:
data:
name: data
mysql:
name: mysql