-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (37 loc) · 850 Bytes
/
docker-compose.yml
File metadata and controls
41 lines (37 loc) · 850 Bytes
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
version: '3'
volumes:
wordpress-mysql-data:
driver: local
services:
app:
build: .
ports:
- "80:80"
container_name: ${APP_NAME}-app
restart: always
volumes:
- ${APP_DIR}:/var/www/html
- ./php.ini-development:/usr/local/etc/php/php.ini
- ./.runtime/logs/apache:/var/log/apache2
links:
- ${DB_HOST}
- ${MAIL_LINK}
dbhost:
image: ambientum/mysql:5.7
container_name: ${APP_NAME}-dbhost
ports:
- "3306:3306"
environment:
- MYSQL_ROOT_PASSWORD=${DB_PASS}
- MYSQL_DATABASE=${DB_BASE}
- MYSQL_USER=${DB_USER}
- MYSQL_PASSWORD=${DB_PASS}
volumes:
- wordpress-mysql-data:/var/lib/mysql
mail:
image: mailhog/mailhog
container_name: ${APP_NAME}-mail
restart: always
ports:
- "1025:1025"
- "8025:8025"