-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (44 loc) · 1.24 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
version: '3'
networks:
wordpress_network:
services:
wordpress:
build: ./wordpress
ports:
- "8080:80"
volumes:
- ./wordpress/my-theme:/var/www/html/wp-content/themes/my-theme
- ./wordpress/.htaccess:/var/www/html/.htaccess
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_NAME: ${WORDPRESS_DB_NAME}
WORDPRESS_DB_USER: ${WORDPRESS_DB_USER}
WORDPRESS_DB_PASSWORD: ${WORDPRESS_DB_PASSWORD}
WORDPRESS_DEBUG: "true" # Habilita el modo de depuración de WordPress para ver los correos enviados
depends_on:
- db
networks:
- wordpress_network
# command: ["sh", "-c", "wp theme activate my-theme"]
db:
build: ./mysql
ports:
- "3306:3306" # Exponer el puerto 3306 de MySQL
environment:
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
volumes:
- db_data:/var/lib/mysql
networks:
- wordpress_network
mailhog:
image: mailhog/mailhog
ports:
- "1025:1025" # Puerto para SMTP (envío de correos)
- "8025:8025" # Puerto para la interfaz web de MailHog
networks:
- wordpress_network
volumes:
db_data: