-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
83 lines (76 loc) · 2.29 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
version: '2.4'
services:
index-wordpress:
command: 'true'
container_name: index-wordpress
depends_on:
- index-wpdb
# https://hub.docker.com/_/composer
image: shafiyaheena01/index-image:latest
working_dir: /var/www/html/
networks:
- index-backend
environment:
MYSQL_ROOT_PASSWORD: root
PMA_HOST: index-wpdb
PMA_PORT: 3306
WORDPRESS_CONFIG_EXTRA: |
# Use dispatch port by default
if ('${CODESPACE_NAME:-}') {
define('WP_HOME', 'https://${CODESPACE_NAME:-}-8080.${GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN:-}');
} else {
define('WP_HOME', 'http://localhost:8080');
define('WP_SITEURL', 'http://localhost:8080');
}
WORDPRESS_DB_HOST: index-wpdb:3306
WORDPRESS_DB_PASSWORD: root
WORDPRESS_DB_USER: root
WORDPRESS_DB_name: wordpress
WORDPRESS_USER: root
ports:
- '8080:80'
restart: on-failure
volumes:
# Apache2 web server configuration
- ./config/web-sites-available:/etc/apache2/sites-available:ro
# CC Legal Tools
# - (assumes the cc-legal-tools-data repository has been cloned next to
# this repository)
- ../cc-legal-tools-data:/var/www/git/cc-legal-tools-data:ro
# Chooser
# - (assumes the chooser repository has been cloned next to this
# repository) this repository)
- ../chooser:/var/www/git/chooser:ro
# FAQ
# - (assumes the faq repository has been cloned next to this repository)
# this repository)
- ../faq:/var/www/git/faq:ro
# Platform Toolkit
# - (assumes the mp repository has been cloned next to this repository)
# this repository)
- ../mp:/var/www/git/mp:ro
# WordPress
- index-wp-data:/var/www/html
# Migration cache
- ./cache:/var/www/html/cache:ro
index-wpdb:
container_name: index-wpdb
environment:
MYSQL_DATABASE: wordpress
MYSQL_ROOT_PASSWORD: root
MYSQL_USER: root
# https://hub.docker.com/_/mariadb
image: mariadb
networks:
- index-backend
restart: on-failure
volumes:
- index-db-data:/var/lib/mysql
volumes:
index-db-data:
name: index-db-data
index-wp-data:
name: index-wp-data
networks:
index-backend:
name: index-backend