forked from shubhamkushwah123/bootcamp10
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
41 lines (39 loc) · 859 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
41
version: '3'
services:
wordpress_db:
restart: always
container_name: docker-mysql
image: mysql
environment:
MYSQL_DATABASE: wordpress_data
MYSQL_ROOT_PASSWORD: root
MYSQL_ROOT_HOST: '%'
volumes:
- ./sql:/docker-entrypoint-initdb.d
ports:
- "6033:3306"
healthcheck:
test: "/usr/bin/mysql --user=root --password=root --execute \"SHOW DATABASES;\""
interval: 2s
timeout: 20s
retries: 10
wordpress:
restart: on-failure
image: wordpress
links:
- wordpress_db:mysql
ports:
- "8080:80"
environment:
WAIT_HOST: mysql:3306
depends_on:
- wordpress_db
phpmyadmin:
image: corbinu/docker-phpmyadmin
links:
- wordpress_db:mysql
ports:
- 8081:80
environment:
MYSQL_USERNAME: root
MYSQL_ROOT_PASSWORD: root