-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·54 lines (48 loc) · 1009 Bytes
/
docker-compose.yml
File metadata and controls
executable file
·54 lines (48 loc) · 1009 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
46
47
48
49
50
51
52
53
54
version: "2"
services:
db:
image: mariadb:10.1
environment:
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
- MYSQL_DATABASE=wordpress
volumes:
- ./docker/db:/tmp/mysql
- db_files:/var/lib/mysql/
command: mysqld --init-file="/tmp/mysql/schema.sql"
phpmyadmin:
image: phpmyadmin/phpmyadmin
environment:
PMA_ARBITRARY: 1
PMA_HOST: db
PMA_PORT: 3306
PMA_USER: root
PMA_PASSWORD: ''
ports:
- "9001:80"
links:
- db
depends_on:
- db
php:
build: ./docker/php
volumes:
- ./docker/php/php.ini:/usr/local/etc/php/php.ini
- ./wordpress:/var/www/html:rw
links:
- db
depends_on:
- db
web:
image: nginx
volumes:
- ./docker/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./docker/nginx/sites-enabled:/etc/nginx/sites-enabled
- ./wordpress:/var/www/html:rw
ports:
- "9999:80"
links:
- php
depends_on:
- php
volumes:
db_files: