Skip to content

Instantly share code, notes, and snippets.

@Mattia541993
Created May 25, 2020 15:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Mattia541993/d338a8b06029dec092e06d110a44f27b to your computer and use it in GitHub Desktop.
Save Mattia541993/d338a8b06029dec092e06d110a44f27b to your computer and use it in GitHub Desktop.
version: '3'
services:
database:
image: mysql:5.7
environment:
MYSQL_ROOT_PASSWORD: 123
MYSQL_DATABASE: stt_db
MYSQL_USER: devuser
MYSQL_PASSWORD: 123
ports:
- "9906:3306"
web:
build: .
container_name: php_web
depends_on:
- database
volumes:
- ./local/:/var/www/html/
ports:
- "8100:80"
stdin_open: true
tty: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment