-
Notifications
You must be signed in to change notification settings - Fork 17
/
docker-compose.yml
47 lines (43 loc) · 987 Bytes
/
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
version: '3'
services:
php-fpm:
image: 10up/phpfpm:7.3
depends_on:
- db
volumes:
- "./wordpress:/var/www/html"
- "./content:/var/www/html/wp-content"
- "./config/php-fpm/php.ini:/usr/local/etc/php/php.ini"
restart: always
nginx:
depends_on:
- php-fpm
ports:
- "80:80"
- "443:443"
image: nginx:latest
volumes:
- "./wordpress:/var/www/html"
- "./content:/var/www/html/wp-content"
- "./config/nginx/default.conf:/etc/nginx/conf.d/default.conf"
restart: always
db:
image: mariadb
volumes:
- "./data:/var/lib/mysql"
restart: always
ports:
- 3306:3306
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress
mailcatcher:
image: schickling/mailcatcher
restart: always
ports:
- "1025:1025"
- "1080:1080"
environment:
MAILCATCHER_PORT: 1025