-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwordpress-compose.yml
More file actions
49 lines (45 loc) · 1.18 KB
/
wordpress-compose.yml
File metadata and controls
49 lines (45 loc) · 1.18 KB
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
---
name: wordpress
services:
wordpress-db:
image: mysql:8.0
volumes:
- ${VOLUME_PATH}/wordpress/wordpress_db_data:/var/lib/mysql
networks:
- wordpress-backend
environment:
- MYSQL_ROOT_PASSWORD=@lunoFat3c
- MYSQL_DATABASE=wordpress
- MYSQL_USER=wordpress
- MYSQL_PASSWORD=alunofatec
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "root", "--password=@lunoFat3c"]
interval: 10s
timeout: 5s
retries: 10
start_period: 30s
restart: unless-stopped
wordpress:
image: wordpress
depends_on:
wordpress-db:
condition: service_healthy
volumes:
- ${VOLUME_PATH}/wordpress/wordpress_data:/var/www/html
networks:
- proxy-frontend
- wordpress-backend
environment:
- VIRTUAL_HOST=wordpress.${DOMAIN}
- LETSENCRYPT_HOST=wordpress.${DOMAIN}
- LETSENCRYPT_EMAIL=${EMAIL}
- WORDPRESS_DB_HOST=wordpress-db:3306
- WORDPRESS_DB_USER=wordpress
- WORDPRESS_DB_PASSWORD=alunofatec
restart: always
networks:
proxy-frontend:
external: true
wordpress-backend:
name: wordpress-backend
driver: bridge