Created
February 26, 2021 11:54
-
-
Save pavlakis/c698286b0be96e913e60e280d6eb07dd to your computer and use it in GitHub Desktop.
Basic LEMP setup with PHP 7.2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Update
phpminds-php
image for PHP 8.0