-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
50 lines (43 loc) · 1.31 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
version: '3.6'
services:
wordpress:
build:
context: .
ports:
- "80:80"
- "443:443"
# Set the working directory to look at the actblue dir on the container.
working_dir: /var/www/html/wp-content/plugins/actblue-contributions
environment:
# WordPress install configuration.
WORDPRESS_TITLE: 'ActBlue Demo'
WORDPRESS_URL: http://localhost
WORDPRESS_ADMIN_USER: admin
WORDPRESS_ADMIN_PASSWORD: password
WORDPRESS_ADMIN_EMAIL: [email protected]
# WordPress database configuration.
WORDPRESS_DB_HOST: db
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: wordpress
WORDPRESS_DB_NAME: wordpress
# Runtime configuration for richarvey/nginx-php-fpm.
# See https://github.com/richarvey/nginx-php-fpm
RUN_SCRIPTS: 1
# Mount the actblue/ plugin directory so that local changes persist.
volumes:
- ./actblue-contributions:/var/www/html/wp-content/plugins/actblue-contributions
- ./logs/:/var/www/html/logs
db:
image: mysql:5.7
restart: always
environment:
# See https://hub.docker.com/_/mysql/
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress
volumes:
- db:/var/lib/mysql
volumes:
wordpress:
db: