Files
monica/docker-compose.yml
T
Tom VincentandAlexis Saettler 03cb842135 fix(docker-compose): mount top-level storage dir (#1548)
The oAuth keys are stored in `/var/www/monica/storage`, so will not be persisted if only the public directory is bound as before. See https://github.com/monicahq/chandler/issues/239
2018-07-10 22:52:24 +02:00

23 lines
447 B
YAML

version: "2"
services:
monicahq:
build: .
image: monicahq/monicahq
links:
- mysql
ports:
- 80:80
env_file: .env
volumes:
- ./persist/storage:/var/www/monica/storage
mysql:
image: mysql:5.7
environment:
- MYSQL_ROOT_PASSWORD=sekret_root_password
- MYSQL_DATABASE=monica
- MYSQL_USER=homestead
- MYSQL_PASSWORD=secret
volumes:
- ./persist/mysql:/var/lib/mysql