Skip to content

Commit abefdd9

Browse files
committed
Add docker-compose
1 parent bcc33e0 commit abefdd9

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

docker-compose.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
nginx:
2+
image: nginx:latest
3+
restart: always
4+
ports:
5+
- 80:80
6+
- 443:443
7+
log_driver: syslog
8+
links:
9+
- wordpress
10+
volumes:
11+
- ./wp:/var/www/html:ro
12+
- /etc/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
13+
- /var/log/nginx:/var/log/nginx
14+
15+
mysql:
16+
image: mariadb:latest
17+
restart: always
18+
volumes:
19+
- /var/mysql:/var/lib/mysql
20+
environment:
21+
MYSQL_ROOT_PASSWORD: password
22+
23+
wordpress:
24+
image: evild/docker-wordpress-fpm:latest
25+
restart: always
26+
links:
27+
- mysql
28+
volumes:
29+
- ./wp:/var/www/html
30+
environment:
31+
WORDPRESS_DB_NAME: wpdb
32+
WORDPRESS_TABLE_PREFIX: wp_

0 commit comments

Comments
 (0)