This commit is contained in:
gustavooth
2026-07-23 20:41:55 -03:00
parent 2df14d57dd
commit d30f0a6eb0
2 changed files with 21 additions and 31 deletions
+14 -30
View File
@@ -1,45 +1,29 @@
services:
db:
image: mariadb:11.8
image: mariadb:11
environment:
MARIADB_DATABASE: ${WORDPRESS_DB_NAME:-wordpress}
MARIADB_USER: ${WORDPRESS_DB_USER:-wordpress}
MARIADB_PASSWORD: ${WORDPRESS_DB_PASSWORD:?Defina WORDPRESS_DB_PASSWORD no arquivo .env}
MARIADB_ROOT_PASSWORD: ${MARIADB_ROOT_PASSWORD:?Defina MARIADB_ROOT_PASSWORD no arquivo .env}
MARIADB_DATABASE: wordpress
MARIADB_USER: wordpress
MARIADB_PASSWORD: wordpress
MARIADB_ROOT_PASSWORD: root
volumes:
- db_data:/var/lib/mysql
healthcheck:
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
interval: 10s
timeout: 5s
retries: 10
start_period: 30s
wordpress:
image: wordpress:php8.3-apache
container_name: gustavoo-me
image: wordpress:7-php8.3-apache
depends_on:
db:
condition: service_healthy
ports:
- "${WORDPRESS_PORT:-8080}:80"
- "8080:80"
environment:
WORDPRESS_DB_HOST: db:3306
WORDPRESS_DB_NAME: ${WORDPRESS_DB_NAME:-wordpress}
WORDPRESS_DB_USER: ${WORDPRESS_DB_USER:-wordpress}
WORDPRESS_DB_PASSWORD: ${WORDPRESS_DB_PASSWORD}
WORDPRESS_DB_HOST: db
WORDPRESS_DB_NAME: wordpress
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: wordpress
volumes:
- wordpress_data:/var/www/html
- type: bind
source: ./wp-content/themes
target: /var/www/html/wp-content/themes
bind:
create_host_path: false
- type: bind
source: ./wp-content/plugins
target: /var/www/html/wp-content/plugins
bind:
create_host_path: false
- ./wp-content/themes:/var/www/html/wp-content/themes
- ./wp-content/plugins:/var/www/html/wp-content/plugins
- ./php.ini:/usr/local/etc/php/conf.d/uploads.ini
volumes:
db_data:
+6
View File
@@ -0,0 +1,6 @@
upload_max_filesize = 1G
post_max_size = 1G
memory_limit = 512M
max_execution_time = 300
max_input_time = 300
max_file_uploads = 100