mirror of
https://github.com/runyanjake/olomana.git
synced 2025-10-05 05:37:29 -07:00
monica
This commit is contained in:
parent
2ac9cd1580
commit
6c7a1d4252
17
monica/README.md
Normal file
17
monica/README.md
Normal 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
41
monica/docker-compose.yml
Normal 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
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user