-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
41 lines (37 loc) · 916 Bytes
/
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
version: "3.1"
services:
blokit_mysql:
container_name: blokit_mysql
image: mysql:latest
networks:
- blokit_network
volumes:
- ./mysql:/var/lib/mysql
ports:
- 3306:3306
environment:
MYSQL_ROOT_PASSWORD: "root"
MYSQL_DATABASE: "blokit"
MYSQL_USER: "blokit_user"
MYSQL_PASSWORD: "blokit_password"
blokit_wp:
container_name: blokit_wp
image: wordpress:latest
networks:
- blokit_network
volumes:
- ./wordpress/:/var/www/html
- ./:/var/www/html/wp-content/plugins/blokit
ports:
- 80:80
links:
- blokit_mysql
environment:
APACHE_DOC_ROOT: "var/www/html"
WORDPRESS_DB_HOST: "blokit_mysql"
WORDPRESS_DB_USER: "blokit_user"
WORDPRESS_DB_PASSWORD: "blokit_password"
WORDPRESS_DB_NAME: "blokit"
WORDPRESS_DB_PREFIX: "blokit_"
networks:
blokit_network: