forked from Evild67/docker-compose-wordpress
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
48 lines (48 loc) · 1.08 KB
/
docker-compose.yml
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
version: '2'
services:
nginx:
image: evild/alpine-nginx:1.11.2-libressl
container_name: wordpress_nginx
restart: always
volumes:
- wordpress-data:/var/www/html/:ro
- ./nginx/conf/nginx.conf:/etc/nginx/conf/nginx.conf:ro
- ./nginx/conf.d:/etc/nginx/conf.d:ro
ports:
- 80:80
- 443:443
networks:
- front
php:
image: evild/alpine-wordpress:4.5.3
container_name: wordpress_php
restart: always
volumes:
- wordpress-data:/var/www/html
- ./php/uploads.ini:/usr/local/etc/php/conf.d/uploads.ini
environment:
- WORDPRESS_DB_NAME=wpdb
- WORDPRESS_TABLE_PREFIX=wp_
- WORDPRESS_DB_HOST=db
- WORDPRESS_DB_PASSWORD=password
networks:
- front
- back
db:
image: mariadb:10
container_name: wordpress_mariadb
restart: always
volumes:
- wordpress-db-data:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=password
networks:
- back
volumes:
wordpress-data:
driver: local
wordpress-db-data:
driver: local
networks:
front:
back: