-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
94 lines (90 loc) · 2.59 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
version: '2'
services:
https-portal:
container_name: https-portal
image: steveltn/https-portal:latest
ports:
- '80:80'
- '443:443'
networks:
static-network:
ipv4_address: 172.20.128.2
restart: always
environment:
# STAGE: 'production'
NUMBITS: '4096'
# FORCE_RENEW: 'true'
WORKER_PROCESSES: '4'
WORKER_CONNECTIONS: '1024'
KEEPALIVE_TIMEOUT: '65'
GZIP: 'on'
SERVER_NAMES_HASH_BUCKET_SIZE: '64'
PROXY_CONNECT_TIMEOUT: '900'
PROXY_SEND_TIMEOUT: '900'
PROXY_READ_TIMEOUT: '900'
CLIENT_MAX_BODY_SIZE: 30M
DOMAINS: >-
reducmarket.xyz -> http://172.20.128.4:8000,
volumes:
- ./conf.d:/etc/nginx/conf.d/:rw
- ./ssl_certs:/var/lib/https-portal:rw
- /var/run/docker.sock:/var/run/docker.sock:ro
db:
container_name: mysql57
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: wproot
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress
networks:
static-network:
ipv4_address: 172.20.128.3
wordpress:
depends_on:
- db
image: wordpress:latest
ports:
- "8000:80"
volumes:
- wp_data:/var/www/html
- ./wp-content:/var/www/html/wp-content
restart: unless-stopped
environment:
WORDPRESS_DB_HOST: db:3306
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: wordpress
WORDPRESS_CONFIG_EXTRA: |
/* Site URL */
define('WP_HOME', 'https://wordpress.example.com'); # <-- CHANGEME
define('WP_SITEURL', 'https://wordpress.example.com'); # <-- CHANGEME
/* Developer friendly settings */
# define('SCRIPT_DEBUG', true);
# define('CONCATENATE_SCRIPTS', false);
# define('WP_DEBUG', true);
# define('WP_DEBUG_LOG', true);
# define('SAVEQUERIES', true);
/* Multisite */
# define('WP_ALLOW_MULTISITE', true );
# define('MULTISITE', true);
# define('SUBDOMAIN_INSTALL', false);
# define('DOMAIN_CURRENT_SITE', 'wordpress.example.com'); # <-- CHANGEME
# define('PATH_CURRENT_SITE', '/');
# define('SITE_ID_CURRENT_SITE', 1);
# define('BLOG_ID_CURRENT_SITE', 1);
networks:
static-network:
ipv4_address: 172.20.128.4
volumes:
db_data: {}
wp_data: {}
networks:
static-network:
ipam:
config:
- subnet: 172.20.0.0/16
#docker-compose v3+ do not use ip_range
ip_range: 172.28.5.0/24