-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
65 lines (59 loc) · 1.2 KB
/
docker-compose.yaml
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
59
60
61
62
63
64
65
version: '3.8'
services:
# Application
phpapp:
build:
context: ./docker
dockerfile: phpapp.dockerfile
working_dir: /var/www
volumes:
- .:/var/www
# Web Server
webserver:
build:
context: ./docker
dockerfile: webserver.dockerfile
working_dir: /var/www
volumes:
- .:/var/www
depends_on:
- "phpapp"
ports:
- 80:80
- 443:443
# Database
database:
image: mysql:8.0
command: --default-authentication-plugin=mysql_native_password
volumes:
- "./docker/data/db/mysql:/var/lib/mysql"
environment:
MYSQL_DATABASE: ${DB_DATABASE}
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
MYSQL_PASSWORD: ${DB_PASSWORD}
MYSQL_USER: ${DB_USERNAME}
ports:
- "33061:3306"
# Database management
pma:
image: phpmyadmin:5.1
environment:
- PMA_ARBITRARY=1
- PMA_HOST=${DB_HOST}
- PMA_USER=${DB_USERNAME}
- PMA_PASSWORD=${DB_PASSWORD}
- PMA_PORT=${DB_PORT}
depends_on:
- database
ports:
- "8888:80"
# Mailing Server
mailhog:
image: mailhog/mailhog
logging:
driver: 'none'
ports:
- 1025:1025
- 8025:8025
volumes:
dbdata: