Created
May 24, 2023 14:06
-
-
Save Bound3R/f9bdaf2ad00976da10d4cd1a4ac74cd2 to your computer and use it in GitHub Desktop.
dcoker base
This file contains hidden or 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: | |
mysql: | |
image: mysql:latest | |
container_name: docker-mysql | |
command: --default-authentication-plugin=mysql_native_password | |
environment: | |
MYSQL_DATABASE: database_name | |
MYSQL_USER: my_username | |
MYSQL_PASSWORD: my_password | |
MYSQL_ROOT_PASSWORD: my_password | |
ports: | |
- "3306:3306" | |
restart: always | |
web: | |
image: php:8.2.6-apache | |
container_name: docker-php | |
ports: | |
- "80:80" | |
volumes: | |
- ./www:/var/www/html | |
links: | |
- mysql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment