forked from monicahq/monica
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
58 lines (53 loc) · 1.2 KB
/
docker-compose.dev.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
###
### ~ Monica dev docker-compose
###
### This file is used for dev purpose.
### The standard monica image definition will be found here: https://github.com/monicahq/docker
###
version: '3'
services:
app:
build:
context: .
dockerfile: scripts/docker/Dockerfile
image: monica:dev
depends_on:
- mysql
ports:
- 8080:80
env_file: .env.dev
volumes:
- /var/www/html/storage
- ./app:/var/www/html/app
- ./database:/var/www/html/database
- ./resources:/var/www/html/resources
- ./routes:/var/www/html/routes
mysql:
image: mysql:8
command: --default-authentication-plugin=mysql_native_password
environment:
- MYSQL_ROOT_PASSWORD=sekret_root_password
- MYSQL_DATABASE=monica
- MYSQL_USER=homestead
- MYSQL_PASSWORD=secret
volumes:
- /var/lib/mysql
phpmyadmin:
image: phpmyadmin
depends_on:
- mysql
environment:
PMA_HOST: mysql
PMA_USER: root
PMA_PASSWORD: sekret_root_password
restart: always
ports:
- 3000:80
volumes:
- /sessions
mail:
container_name: fake_mail
image: mailhog/mailhog
ports:
- 8025:8025
- 1025:1025