Skip to content

Instantly share code, notes, and snippets.

@pavlakis
Created February 26, 2021 11:54
Show Gist options
  • Save pavlakis/c698286b0be96e913e60e280d6eb07dd to your computer and use it in GitHub Desktop.
Save pavlakis/c698286b0be96e913e60e280d6eb07dd to your computer and use it in GitHub Desktop.
Basic LEMP setup with PHP 7.2
version: '3'
services:
phpminds-nginx:
image: phpminds/nginx:1.10
restart: always
depends_on:
- db
ports:
- 8080:80
volumes:
- .:/app
phpminds-php:
image: phpminds/php:7.2.15
restart: always
volumes:
- .:/app
db:
image: mysql:5.7
restart: always
ports:
- 8006:3306
environment:
MYSQL_ROOT_PASSWORD: Admin123
MYSQL_DATABASE: phpminds
MYSQL_USER: root
MYSQL_PASSWORD: Admin123
volumes:
- ./.data/db:/var/lib/mysql
- .:/app
@pavlakis
Copy link
Author

Update phpminds-php image for PHP 8.0

image: php:8.0.2-fpm-alpine3.12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment