This repository has been archived by the owner on Aug 17, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
71 lines (64 loc) · 2.11 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
version: "3"
services:
nginx:
image: nginx:latest
container_name: badgerherald.com-nginx
links:
- wordpress
ports:
- 80:80
- 443:443
volumes:
- badgerherald.com-wordpress:/var/www/html
- ./server/nginx/badgerherald.com.conf:/etc/nginx/nginx.conf
- ./server/nginx/ssl/${SSL_CERTIFICATE_NAME}.crt:/etc/ssl/certs/localhost.crt
- ./server/nginx/ssl/${SSL_CERTIFICATE_NAME}.key:/etc/ssl/private/localhost.key
restart: always
mariadb:
container_name: badgerherald.com-mysql
image: mariadb
volumes:
- ./server/sql/install/:/docker-entrypoint-initdb.d
- ./server/sql/my.cnf:/etc/mysql/conf.d/my.cnf
- badgerherald.com-mysql:/var/lib/mysql:rw
restart: always
expose:
- 3306
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_USER: ${MYSQL_WORDPRESS_USER}
MYSQL_PASSWORD: ${MYSQL_WORDPRESS_PASSWORD}
MYSQL_DATABASE: ${MYSQL_WORDPRESS_DATABASE}
wordpress:
container_name: badgerherald.com-wordpress
depends_on:
- mariadb
image: wordpress:latest
expose:
- 80
restart: always
volumes:
- badgerherald.com-wordpress:/var/www/html
- ./server/wp-content:/var/www/html/wp-content/
- ~/badgerherald.com${WORDPRESS_UPLOADS_DIR}:/var/www/html/wp-content/uploads
- ./server/app:/var/www/html/app
environment:
WORDPRESS_DB_HOST: mariadb:3306
WORDPRESS_DB_USER: ${MYSQL_WORDPRESS_DATABASE}
WORDPRESS_DB_PASSWORD: ${MYSQL_WORDPRESS_PASSWORD}
WORDPRESS_DB_NAME: ${MYSQL_WORDPRESS_DATABASE}
WORDPRESS_CONFIG_EXTRA: |
/* Domain */
define("WP_HOME","${WORDPRESS_SITE_URL}");
define("WP_SITEURL","${WORDPRESS_SITE_URL}");
define('STRIPE_SK', '${STRIPE_SECRET_KEY}');
define('STRIPE_MONTHLY_PLAN', '${STRIPE_MONTHLY_PLAN}');
define('STRIPE_SEMESTER_PLAN', '${STRIPE_SEMESTER_PLAN}');
define('EXA_APP_URL', '//badgerherald.com/app/');
volumes:
badgerherald.com-mysql:
badgerherald.com-wordpress:
networks:
default:
external:
name: badgerherald.com-network