Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
33 lines (29 sloc) 539 Bytes
version: "3"
services:
app:
build:
context: .
dockerfile: .docker/Dockerfile
ports:
- "8080:80"
volumes:
- .:/var/www/html
depends_on:
- mysql
links:
- mysql:mysql
env_file: .docker/env/docker.env
mysql:
image: mysql:5.7
ports:
- "13306:3306"
environment:
MYSQL_DATABASE: database_name
MYSQL_ROOT_PASSWORD: 123qwe
MYSQL_USER: someuser
MYSQL_PASSWORD: 123qwe
volumes:
- mysql:/var/dockervolumes
volumes:
mysql:
driver: "local"
You can’t perform that action at this time.