-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
45 lines (40 loc) · 1015 Bytes
/
docker-compose.yaml
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
version: '3.1'
services:
wordpress:
image: wordpress
container_name: wp
restart: always
ports:
- "8080:80"
volumes:
- ./wp-content:/var/www/html/wp-content
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_USER: exampleuser
WORDPRESS_DB_PASSWORD: examplepass
WORDPRESS_DB_NAME: exampledb
WORDPRESS_CONFIG_EXTRA:
define( 'WP_HOME', 'http://localhost:8080' );
define( 'WP_SITEURL', 'http://localhost:8080' );
define( 'WP_DEBUG', true );
depends_on:
- db
db:
image: mysql:5.7
container_name: wp_db
restart: always
volumes:
- ./db-dump:/docker-entrypoint-initdb.d
environment:
MYSQL_DATABASE: exampledb
MYSQL_USER: exampleuser
MYSQL_PASSWORD: examplepass
MYSQL_ROOT_PASSWORD: example
phpMyAdmin:
image: phpmyadmin/phpmyadmin
container_name: phpmyadmin
restart: always
ports:
- "8000:80"
environment:
MYSQL_ROOT_PASSWORD: example