-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
53 lines (51 loc) · 1.04 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
version: '3'
services:
web:
container_name: wp_headless_web
image: nginx:1.17-alpine
networks:
- overlay
ports:
- 80:80
volumes:
- www-root:/var/www/html
- ./conf.d:/etc/nginx/conf.d
depends_on:
- php
php:
build: ./docker-php
container_name: wp_headless_php
depends_on:
- database
environment:
- MYSQL_ROOT_PASSWORD=secret
- WP_ADMIN_USERNAME=admin
- WP_ADMIN_PASSWORD=123123
networks:
- overlay
volumes:
- www-root:/var/www/html
database:
image: mysql:8
container_name: wp_headless_db
command: --default-authentication-plugin=mysql_native_password
networks:
- overlay
environment:
- MYSQL_ROOT_PASSWORD=secret
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: wp_headless_phpmyadmin
depends_on:
- database
networks:
- overlay
ports:
- 9900:80
environment:
- PMA_HOST=database
- MYSQL_ROOT_PASSWORD=secret
networks:
overlay:
volumes:
www-root: {}