feat: add Monica as new service (#21)
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Co-authored-by: Davide Polonio <poloniodavide@gmail.com> Reviewed-on: #21
This commit is contained in:
parent
d3ecca769c
commit
97d2f66c66
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,3 +3,4 @@ config/
|
||||
.env
|
||||
.idea/
|
||||
env-searxng
|
||||
.*.env
|
||||
|
56
diary/docker-compose.yml
Normal file
56
diary/docker-compose.yml
Normal file
@ -0,0 +1,56 @@
|
||||
version: "3.9"
|
||||
|
||||
services:
|
||||
app:
|
||||
image: monica:4-apache
|
||||
depends_on:
|
||||
- db
|
||||
env_file:
|
||||
- .monica.env
|
||||
- .env
|
||||
volumes:
|
||||
- data:/var/www/html/storage
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- internal
|
||||
- proxy
|
||||
|
||||
cron:
|
||||
image: monica:4-apache
|
||||
env_file: .monica.env
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- data:/var/www/html/storage
|
||||
command: cron.sh
|
||||
depends_on:
|
||||
- db
|
||||
|
||||
db:
|
||||
image: mysql:8.0
|
||||
env_file:
|
||||
- .mysql.env
|
||||
volumes:
|
||||
- mysql:/var/lib/mysql
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- internal
|
||||
|
||||
volumes:
|
||||
data:
|
||||
driver: local
|
||||
driver_opts:
|
||||
type: none
|
||||
o: bind
|
||||
device: "/srv/docker/diary/data"
|
||||
mysql:
|
||||
driver: local
|
||||
driver_opts:
|
||||
type: none
|
||||
o: bind
|
||||
device: "/srv/docker/diary/mysql"
|
||||
|
||||
networks:
|
||||
proxy:
|
||||
external: true
|
||||
internal:
|
||||
|
Loading…
x
Reference in New Issue
Block a user