-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
50 lines (44 loc) · 997 Bytes
/
docker-compose.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
version: "3"
services:
web:
image: nginx:latest
ports:
- 8080:80
volumes:
- ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf
- ./app:/app
php:
build:
context: .
dockerfile: PHP.Dockerfile
volumes:
- ./app:/app
- ./php/local.ini:/usr/local/etc/php/conf.d/local.ini
mysql:
image: mariadb:latest
environment:
MYSQL_ROOT_PASSWORD: 'dev'
MYSQL_USER: 'dev'
MYSQL_PASSWORD: 'dev'
MYSQL_DATABASE: 'development'
volumes:
- mysqldata:/var/lib/mysql
ports:
- 3306:3306
phpmyadmin:
image: phpmyadmin:latest
ports:
- 8081:80
environment:
- PMA_ARBITRARY=1
depends_on:
- mysql
mailhog:
image: mailhog/mailhog:latest
logging:
driver: 'none' # disable saving logs
ports:
- 1025:1025 # SMTP server
- 8280:8025 # web interface
volumes:
mysqldata: {}