diff --git a/.gitignore b/.gitignore index c0ec2e3..6efbcab 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ .env -db \ No newline at end of file +db +wp_data \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 5addd35..182efae 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,15 +6,16 @@ services: image: wordpress:latest container_name: g2bc restart: always + ports: + - 80:80 + volumes: + - ./public_html/wp-content:/var/www/html/wp-content + - ./wp_data:/var/www/html/ environment: - WORDPRESS_DB_HOST: '${WORDPRESS_DB_HOST}' + WORDPRESS_DB_HOST: '${WORDPRESS_DB_HOST}:3306' WORDPRESS_DB_USER: '${WORDPRESS_DB_USER}' WORDPRESS_DB_PASSWORD: '${WORDPRESS_DB_PASSWORD}' WORDPRESS_DB_NAME: '${WORDPRESS_DB_NAME}' - ports: - - 8001:80 - volumes: - - ./public_html:/var/www/html depends_on: - db networks: @@ -24,17 +25,33 @@ services: container_name: '${WORDPRESS_DB_HOST}' image: mysql:8.0 restart: always + volumes: + - ./db:/var/lib/mysql + - ./g2bcun_geral:/docker-entrypoint-initdb.d + ports: + - 3306:3306 + expose: + - 3306 + - 33060 environment: MYSQL_DATABASE: '${MYSQL_DATABASE}' MYSQL_USER: '${MYSQL_USER}' MYSQL_PASSWORD: '${MYSQL_PASSWORD}' MYSQL_ROOT_PASSWORD: '${MYSQL_ROOT_PASSWORD}' command: '--default-authentication-plugin=mysql_native_password' - volumes: - - ./db:/var/lib/mysql - - ./g2bcun_geral:/docker-entrypoint-initdb.d + networks: + - internal + + phpmyadmin: + image: phpmyadmin/phpmyadmin + restart: always ports: - - 3306:3306 + - '3000:80' + environment: + PMA_HOST: '${WORDPRESS_DB_HOST}' + MYSQL_ROOT_PASSWORD: '${MYSQL_ROOT_PASSWORD}' + depends_on: + - db networks: - internal @@ -43,5 +60,5 @@ networks: external: true volumes: - public_html: + wp_data: db: diff --git a/g2bcun_geral/g2bcun_geral.sql b/g2bcun_geral/g2bcun_geral.sql index 616c86f..daa3596 100644 --- a/g2bcun_geral/g2bcun_geral.sql +++ b/g2bcun_geral/g2bcun_geral.sql @@ -157,27 +157,27 @@ CREATE TABLE `wp_litespeed_url` ( -- INSERT INTO `wp_litespeed_url` (`id`, `url`, `cache_tags`) VALUES -(1, 'https://www.g2bc.uneb.br', ''), +(1, 'http://localhost', ''), (2, '404', ''), -(3, 'https://www.g2bc.uneb.br/sotfwares-e-bancos-de-dados', ''), -(4, 'https://www.g2bc.uneb.br/linhas-de-pesquisa', ''), -(5, 'https://www.g2bc.uneb.br/projetos-de-pesquisa', ''), -(6, 'https://www.g2bc.uneb.br/publicacoes', ''), -(7, 'https://www.g2bc.uneb.br/pesquisadores', ''), -(8, 'https://www.g2bc.uneb.br/iniciacao-cientifica', ''), -(9, 'https://www.g2bc.uneb.br/graduacao', ''), -(10, 'https://www.g2bc.uneb.br/2023/05/micotrilhas-turisticas-no-parque-estadual-da-serra-do-conduru-e-parque-nacional-da-chapada-diamantina', ''), -(11, 'https://www.g2bc.uneb.br/2023/04/proteinas', ''), -(12, 'https://www.g2bc.uneb.br/2023/04/dna', ''), -(13, 'https://www.g2bc.uneb.br/midia', ''), -(14, 'https://www.g2bc.uneb.br/mestrado', ''), -(15, 'https://www.g2bc.uneb.br/doutorado', ''), -(16, 'https://www.g2bc.uneb.br/contato', ''), -(17, 'https://www.g2bc.uneb.br/producao-bibliografica', ''), -(18, 'https://www.g2bc.uneb.br/category/noticias', ''), -(19, 'https://www.g2bc.uneb.br/oportunidades', ''), -(20, 'https://www.g2bc.uneb.br/2024/03/grupo-de-pesquisadores-investiga-cogumelos-comestiveis-da-mata-atlantica', ''), -(21, 'https://www.g2bc.uneb.br/author/alenz', ''); +(3, 'http://localhost/sotfwares-e-bancos-de-dados', ''), +(4, 'http://localhost/linhas-de-pesquisa', ''), +(5, 'http://localhost/projetos-de-pesquisa', ''), +(6, 'http://localhost/publicacoes', ''), +(7, 'http://localhost/pesquisadores', ''), +(8, 'http://localhost/iniciacao-cientifica', ''), +(9, 'http://localhost/graduacao', ''), +(10, 'http://localhost/2023/05/micotrilhas-turisticas-no-parque-estadual-da-serra-do-conduru-e-parque-nacional-da-chapada-diamantina', ''), +(11, 'http://localhost/2023/04/proteinas', ''), +(12, 'http://localhost/2023/04/dna', ''), +(13, 'http://localhost/midia', ''), +(14, 'http://localhost/mestrado', ''), +(15, 'http://localhost/doutorado', ''), +(16, 'http://localhost/contato', ''), +(17, 'http://localhost/producao-bibliografica', ''), +(18, 'http://localhost/category/noticias', ''), +(19, 'http://localhost/oportunidades', ''), +(20, 'http://localhost/2024/03/grupo-de-pesquisadores-investiga-cogumelos-comestiveis-da-mata-atlantica', ''), +(21, 'http://localhost/author/alenz', ''); -- -------------------------------------------------------- @@ -255,8 +255,8 @@ CREATE TABLE `wp_options` ( -- INSERT INTO `wp_options` (`option_id`, `option_name`, `option_value`, `autoload`) VALUES -(1, 'siteurl', 'https://www.g2bc.uneb.br', 'yes'), -(2, 'home', 'https://www.g2bc.uneb.br', 'yes'), +(1, 'siteurl', 'http://localhost', 'yes'), +(2, 'home', 'http://localhost', 'yes'), (3, 'blogname', '', 'yes'), (4, 'blogdescription', '', 'yes'), (5, 'users_can_register', '0', 'yes'), @@ -941,7 +941,7 @@ INSERT INTO `wp_postmeta` (`meta_id`, `post_id`, `meta_key`, `meta_value`) VALUE (46, 24, '_menu_item_target', ''), (47, 24, '_menu_item_classes', 'a:1:{i:0;s:0:\"\";}'), (48, 24, '_menu_item_xfn', ''), -(49, 24, '_menu_item_url', 'https://www.g2bc.uneb.br/'), +(49, 24, '_menu_item_url', 'http://localhost/'), (57, 1, '_edit_last', '3'), (58, 1, '_wp_page_template', 'default'), (61, 1, '_wp_old_slug', 'ola-mundo'), @@ -9079,8 +9079,8 @@ CREATE TABLE `wp_users` ( INSERT INTO `wp_users` (`ID`, `user_login`, `user_pass`, `user_nicename`, `user_email`, `user_url`, `user_registered`, `user_activation_key`, `user_status`, `display_name`) VALUES (1, 'cpd', '$P$BeoxK32PQXfsuxDdSTBC6bFnp623sY.', 'cpd', 'listacpd@uneb.br', 'https://www.g2bc.uneb.br', '2023-04-13 18:40:38', '', 0, 'cpd'), (2, 'alenz', '$P$BajTNVb0DL6wKFk.a/FQq8lD/fmQXs/', 'alenz', 'alenz@uneb.br', '', '2023-04-13 19:26:30', '1681413990:$P$BjAFjffVu7d6dVOgKUxQh01mVBZ9sT1', 0, 'Alexandre Lenz'), -(3, 'Adeluz', '$P$BkyKonNwDp00GQWuIL5c.xsNZm8txa/', 'adeluz', 'contatoadeluz@gmail.com', 'http://adeluzprojetos.com.br/', '2023-04-27 16:49:10', '1687970715:$P$BayHULALP6LRsHVJk8Sew3fF.u6Rt60', 0, 'Adeluz Projetos'); - +(3, 'Adeluz', '$P$BkyKonNwDp00GQWuIL5c.xsNZm8txa/', 'adeluz', 'contatoadeluz@gmail.com', 'http://adeluzprojetos.com.br/', '2023-04-27 16:49:10', '1687970715:$P$BayHULALP6LRsHVJk8Sew3fF.u6Rt60', 0, 'Adeluz Projetos'), +(4, 'pedro', '$P$Binxeqf/ma07IGzzscTMn8mAhSAE5W0', 'pedro', 'pvsbenevides197@gmail.com', 'http://localhost', '2024-06-12 05:12:49', '', '0', 'pedro'); -- -------------------------------------------------------- --