-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
58 lines (53 loc) · 1.44 KB
/
docker-compose.yml
File metadata and controls
58 lines (53 loc) · 1.44 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
49
50
51
52
53
54
55
56
57
58
version: '3.1'
services:
wordpress:
build:
context: .
dockerfile: Dockerfile-wordpress
image: wordpress:latest
platform: linux/arm64 # Changed to ARM64
ports:
- "80:80"
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: ${WORDPRESS_DB_PASSWORD}
WORDPRESS_DB_NAME: wordpress
WORDPRESS_DEBUG: 'true' # Enable WP_DEBUG mode
volumes:
- wce_wordpress_data:/var/www/html
- ./:/var/www/html/wp-content/plugins/cache-everything # Mount the plugin directory
restart: always
db:
image: mysql:5.7
platform: linux/amd64 # Changed to ARM64
volumes:
- wce_db_data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: ${WORDPRESS_DB_PASSWORD}
restart: always
phpmyadmin:
image: phpmyadmin/phpmyadmin
platform: linux/amd64 # Changed to ARM64
ports:
- "8080:80"
environment:
PMA_HOST: db
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
depends_on:
- db
restart: always
cloudflared:
image: cloudflare/cloudflared:latest
platform: linux/arm64 # Check if ARM64 is supported
command: tunnel run a1b67e02-62ff-4bd8-b255-0d87a4810cd2
environment:
TUNNEL_TOKEN: ${TUNNEL_TOKEN}
depends_on:
- wordpress
volumes:
wce_wordpress_data:
wce_db_data: