-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
73 lines (65 loc) · 1.51 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
72
version: '3.6'
services:
nginx:
build:
context: .
dockerfile: nginx/Dockerfile
links:
- wordpress
depends_on:
- wordpress
ports:
- "8080:80"
# - "443:443"
restart: always
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./nginx/vhost.conf:/etc/nginx/conf.d/vhost.conf
- ./wp:/var/www/html/:ro
wordpress:
build:
context: .
dockerfile: wordpress-fpm/Dockerfile
depends_on:
- mysql
restart: always
volumes:
- ./wp:/var/www/html/
- ./wordpress-fpm/info.php:/var/www/html/info.php # Do not let this get committed to your repository
# To use the latest Wordpress version, only mount the content
# - ./wp/wp-content:/var/www/html/wp-content
# - ./wp/wp-config.php:/var/www/html/wp-config.php
mysql:
image: mysql:8.0
restart: always
environment:
MYSQL_ROOT_PASSWORD: wp
MYSQL_DATABASE: wp
MYSQL_USER: wp
MYSQL_PASSWORD: wp
ports:
- "3306:3306"
volumes:
- ./data:/docker-entrypoint-initdb.d
- db:/var/lib/mysql
# redis:
# image: redis:alpine
# restart: always
# ports:
# - '6379:6379'
# phpmyadmin:
# depends_on:
# - mysql
# image: phpmyadmin/phpmyadmin
# restart: always
# ports:
# - 8181:80
# environment:
# PMA_HOST: mysql
# MYSQL_ROOT_PASSWORD: wp #this must match you entered under 'mysql'
# networks:
# - back
volumes:
db:
# networks:
# back: