forked from Evild67/docker-compose-wordpress
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
71 lines (65 loc) · 1.4 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
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
depends_on:
- php
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
depends_on:
- db
db:
image: percona:5.7
container_name: wordpress_db
restart: always
volumes:
- wordpress-db-data:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=password
networks:
- back
ngrok:
image: wernight/ngrok
container_name: wordpress_ngrok
restart: always
command: ngrok http nginx:80 -log stdout
environment:
- NGROK_AUTH=your_auth_token
ports:
- 4040:4040
networks:
- front
depends_on:
- nginx
volumes:
wordpress-data:
driver: local
wordpress-db-data:
driver: local
networks:
front:
back: