Skip to content

Commit

Permalink
webstack/docker-nginx-php81-mysql80-no-laravel
Browse files Browse the repository at this point in the history
- Update ReadMe, Dockerfile, docker-compose, and config files
- Update Php to version 8.1
- Update MySql to version 8.0.30
  • Loading branch information
nspalo committed Aug 25, 2022
1 parent c90fe43 commit 4b1e423
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
4 changes: 2 additions & 2 deletions docker/containers/composer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Pull from PHP from previous Dockerfile - php/Dockerfile
# - see docker/docker-compose.yml for more info
# - use the image tag php:php-7.4-fpm-alpine
FROM php:php-7.4-fpm-alpine
# - use the image tag php:php-8.1-fpm-alpine
FROM php:php-8.1-fpm-alpine

# Install Composer 2.1.5
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer --version=2.1.5
Expand Down
2 changes: 1 addition & 1 deletion docker/containers/mysql/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Install MySQL
FROM library/mysql:5.7.22
FROM library/mysql:8.0.30
6 changes: 3 additions & 3 deletions docker/containers/php/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Install PHP 7.4
FROM php:7.4-fpm-alpine
# Install PHP 8.1
FROM php:8.1-fpm-alpine

# Install PHP Extension
RUN apk --no-cache add zip libzip-dev \
&& docker-php-ext-configure zip \
&& docker-php-ext-install zip pdo pdo_mysql
&& docker-php-ext-install zip pdo pdo_mysql \
5 changes: 3 additions & 2 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,11 @@ services:
networks:
- web-app
container_name: mysql
command: mysqld --default-authentication-plugin=mysql_native_password
build:
context: .
dockerfile: containers/mysql/Dockerfile
image: mysql:mysql-5.7.22
image: mysql:mysql-8.0.30
restart: unless-stopped
tty: true
ports:
Expand All @@ -61,7 +62,7 @@ services:
build:
context: .
dockerfile: containers/php/Dockerfile
image: php:php-7.4-fpm-alpine
image: php:php-8.1-fpm-alpine
ports:
- "9000:9000"
volumes:
Expand Down
2 changes: 1 addition & 1 deletion docker/environments/config.env
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ PATH_DATABASE=./volumes/mysql

# DATABASE
DB_DRIVER=mysql
DB_VERSION=5.7.22
DB_VERSION=8.0.30
DB_PORT=3306
DB_VOLUME=${PATH_DATABASE}/${DB_DRIVER}_${DB_VERSION}

0 comments on commit 4b1e423

Please sign in to comment.