-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose.yml
38 lines (35 loc) · 951 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
version: '3.7'
## Volumes
###############################################################################
volumes:
db_data:
## Services
###############################################################################
services:
php:
build:
context: .
dockerfile: dev/docker/php/Dockerfile
ports:
- "8000:8000"
restart: on-failure
volumes:
- ./:/var/www:cached
depends_on:
- mysql
tty: true
mysql:
ports:
- '3306:3306'
restart: always
image: mysql:8.0
volumes:
- db_data:/var/lib/mysql
cap_add:
- SYS_NICE
command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_ROOT_PASSWORD: ${DB_PASS}
MYSQL_DATABASE: ${DB_NAME}
MYSQL_USER: ${DB_USER}
MYSQL_PASSWORD: ${DB_PASS}