-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yml
42 lines (38 loc) · 913 Bytes
/
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
version: '3.1'
services:
wordpress:
image: wordpress:6.1.1
restart: always
ports:
- 8080:80
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_USER: root
WORDPRESS_DB_PASSWORD: password
WORDPRESS_DB_NAME: mjgarganis_lab
volumes:
- wordpress:/var/www/html
- ./theme:/var/www/html/wp-content/themes/mjgargani-style
depends_on:
db:
condition: service_healthy
healthcheck:
test: ["CMD", "lsof", "-t", "-i:8080"]
timeout: 10s
retries: 5
db:
image: mysql:5.7
restart: always
environment:
MYSQL_DATABASE: mjgarganis_lab
MYSQL_ROOT_PASSWORD: password
volumes:
- db:/var/lib/mysql
- ./db/init.sql:/docker-entrypoint-initdb.d/init.sql
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
timeout: 10s
retries: 5
volumes:
wordpress:
db: