-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml-sample
66 lines (64 loc) · 1.85 KB
/
docker-compose.yml-sample
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
version: "2"
services:
redis:
image: redis:4-alpine
networks:
default:
aliases:
- redis.[site domain]
php:
# note, use oeru/php72-fpm-xdebug if you want to do debugging, e.g. on a dev install
image: oeru/php72-fpm
links:
- redis
ports:
- "127.0.0.1:9000:9000"
volumes:
- /home/data/wordpress:/var/www/html
environment:
- SMTP_HOST=[a domain name]
- SMTP_PORT=[one of 25, 465, or 587]
- SMTP_REPLYTO_EMAIL=[an email address]
- SMTP_AUTH_USER=[an email address]
- SMTP_AUTH_PASSWORD=[password]
restart: unless-stopped
ports:
- "127.0.0.1:9000:9000"
networks:
default:
aliases:
- wpms.[site domain]
nginx:
image: oeru/nginx-jessie
links:
- php
- redis
ports:
- "127.0.0.1:8080:80"
volumes:
- ./nginx/conf.d:/etc/nginx/conf.d
- ./nginx/cache:/var/cache/nginx
- /home/data/wordpress:/var/www/html
restart: unless-stopped
networks:
default:
aliases:
- nginx.[site domain]
cron:
image: oeru/php72-fpm-cron
links:
- php
- nginx
volumes:
- /home/data/wordpress:/var/www/html
environment:
- SMTP_HOST=[a domain name]
- SMTP_PORT=[one of 25, 465, or 587]
- SMTP_REPLYTO_EMAIL=[an email address]
- SMTP_AUTH_USER=[an email address]
- SMTP_AUTH_PASSWORD=[password]
restart: unless-stopped
networks:
default:
aliases:
- cron.[site domain]