Skip to content

Commit

Permalink
update-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrovsbenevides committed Dec 10, 2024
1 parent bb27e21 commit 812438b
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,11 @@ services:
container_name: g2bc
restart: always
ports:
- 80:80
- 8001:80
volumes:
- ./public_html/wp-content:/var/www/html/wp-content
- ./wp_data:/var/www/html/
environment:
WORDPRESS_DB_HOST: '${WORDPRESS_DB_HOST}:3306'
WORDPRESS_DB_HOST: 'mysql-wordpress'
WORDPRESS_DB_USER: '${WORDPRESS_DB_USER}'
WORDPRESS_DB_PASSWORD: '${WORDPRESS_DB_PASSWORD}'
WORDPRESS_DB_NAME: '${WORDPRESS_DB_NAME}'
Expand All @@ -22,15 +21,13 @@ services:
- internal

db:
container_name: '${WORDPRESS_DB_HOST}'
image: mysql:8.0
container_name: mysql-wordpress
image: mariadb:10.6.4-focal
restart: always
volumes:
- ./db:/var/lib/mysql
- ./db_data:/var/lib/mysql
- ./g2bcun_geral:/docker-entrypoint-initdb.d
ports:
- 3306:3306
expose:
- 3306
- 33060
environment:
Expand All @@ -48,7 +45,7 @@ services:
ports:
- '3000:80'
environment:
PMA_HOST: '${WORDPRESS_DB_HOST}'
PMA_HOST: 'mysql-wordpress'
MYSQL_ROOT_PASSWORD: '${MYSQL_ROOT_PASSWORD}'
depends_on:
- db
Expand All @@ -61,4 +58,4 @@ networks:

volumes:
wp_data:
db:
db_data:

0 comments on commit 812438b

Please sign in to comment.