Skip to content

Instantly share code, notes, and snippets.

@Bound3R
Created May 24, 2023 14:06
Show Gist options
  • Save Bound3R/f9bdaf2ad00976da10d4cd1a4ac74cd2 to your computer and use it in GitHub Desktop.
Save Bound3R/f9bdaf2ad00976da10d4cd1a4ac74cd2 to your computer and use it in GitHub Desktop.
dcoker base
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