Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
DB Tech Monica Install
version: "2"
services:
app:
image: monica
depends_on:
- db
ports:
- 8485:80
environment:
- APP_KEY=MiHe3JFtqFwnFaLC2X8tUzXsk56ExAKD #change this to another 32 character string.
- DB_HOST=db
volumes:
- /srv/dev-disk-by-uuid-0d4a201c-b292-412d-ade6-cc5561e54f1f/Configs/Monica2:/var/www/html/storage
restart: always
db:
image: mysql:5.7
environment:
- MYSQL_RANDOM_ROOT_PASSWORD=true
- MYSQL_DATABASE=monica
- MYSQL_USER=homestead
- MYSQL_PASSWORD=secret
volumes:
- /srv/dev-disk-by-uuid-0d4a201c-b292-412d-ade6-cc5561e54f1f/Databases/Monica2:/var/lib/mysql
restart: always
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment