diff --git a/compose.yaml b/compose.yaml index 2ceda7a..760f358 100644 --- a/compose.yaml +++ b/compose.yaml @@ -1,46 +1,30 @@ 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: - wordpress_data: + wordpress_data: \ No newline at end of file diff --git a/php.ini b/php.ini new file mode 100644 index 0000000..a53c6da --- /dev/null +++ b/php.ini @@ -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