-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.yml
More file actions
75 lines (70 loc) · 1.91 KB
/
config.yml
File metadata and controls
75 lines (70 loc) · 1.91 KB
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
73
74
75
version: '3'
services:
# nginx
nginx:
image: bondagency/nginx-extras:latest
expose:
- 80
volumes:
- www-data:/var/www/html
- www-cache:/var/www/cache
- ./nginx/config/global:/etc/nginx/global:ro
- ./nginx/config/h5bp:/etc/nginx/h5bp:ro
- ./nginx/config/vhost.${NGINX_ENV}.conf:/etc/nginx/vhost.conf:ro
- ./nginx/config/mime.types:/etc/nginx/mime.types:ro
- ./nginx/config/nginx.conf:/etc/nginx/nginx.conf:ro
- ./wordpress/wp-content:/var/www/html/wp-content${MOUNT_CACHE}
links:
- wordpress
restart: unless-stopped
hostname: nginx.${HOSTNAME}
logging:
options:
max-size: "10m"
environment:
- VIRTUAL_HOST=${VIRTUAL_HOST}
- LETSENCRYPT_HOST=${LETSENCRYPT_HOST}
- LETSENCRYPT_EMAIL=${LETSENCRYPT_EMAIL}
- USER_ID=${USER_ID}
# database
database:
image: mariadb
volumes:
- ./database:/var/lib/mysql
- ./mariadb/custom.cnf:/etc/mysql/conf.d/custom.cnf:ro
restart: unless-stopped
hostname: database.${HOSTNAME}
logging:
options:
max-size: "10m"
environment:
- MYSQL_ROOT_PASSWORD=${WORDPRESS_DB_PASSWORD}
# wordpress
wordpress:
image: bondagency/docker-wpbp-wordpress
restart: unless-stopped
hostname: wordpress.${HOSTNAME}
logging:
options:
max-size: "10m"
links:
- database
volumes:
- ./wordpress/wp-content:/var/www/html/wp-content${MOUNT_CACHE}
- ./wordpress/config/wp-config.php:/var/www/config/wp-config.php:ro
- www-data:/var/www/html
- www-cache:/var/www/cache
environment:
- WORDPRESS_DB_HOST=database
- WORDPRESS_DB_NAME=wordpress
- WPTB_ENV=${WPTB_ENV}
- WORDPRESS_DB_PASSWORD=${WORDPRESS_DB_PASSWORD}
- USER_ID=${USER_ID}
- ACF_KEY=${ACF_KEY}
volumes:
www-data:
www-cache:
networks:
default:
external:
name: nginx-proxy-network