-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (40 loc) · 895 Bytes
/
docker-compose.yml
File metadata and controls
45 lines (40 loc) · 895 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
42
43
44
45
version: "2"
services:
db:
image: mysql:5.7
container_name: db
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_PASSWORD}
- MYSQL_DATABASE=${MYSQL_DB}
ports:
- "${MYSQL_PORT}:3306"
wordpress:
image: wordpress:4.4.2-apache
container_name: wordpress
links:
- db
ports:
- "${WP_PORT}:80"
volumes:
- wordpress-data:/var/www/html
environment:
- WORDPRESS_DB_HOST=db:${MYSQL_PORT}
- WORDPRESS_DB_PASSWORD=${WP_PASSWORD}
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: phpmyadmin
links:
- db
ports:
- "${PHPMYADMIN_PORT}:80"
composer:
image: composer/composer:1.1
container_name: composer
volumes:
- wordpress-data:/app
command: install
volumes:
wordpress-data:
driver: local-persist
driver_opts:
mountpoint: ${PWD}/wordpress