-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
55 lines (53 loc) · 1.08 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
version: '3'
services:
nginx:
build:
context: .
dockerfile: Dockerfile-nginx
volumes:
- ./app/:/var/www/app/
ports:
- 8001:80
networks:
- app
depends_on:
- php
php:
build:
context: .
dockerfile: Dockerfile-php
environment:
XDEBUG_CONFIG: "remote_host=192.168.210.1 remote_enable=1"
PHP_IDE_CONFIG: "serverName=Docker"
APP_ENV: dev
volumes:
- ./app/:/var/www/app/
networks:
- app
depends_on:
- mysql
mysql:
image: mysql
command: [
'--character-set-server=utf8mb4',
'--collation-server=utf8mb4_unicode_ci',
'--default-authentication-plugin=mysql_native_password'
]
environment:
MYSQL_DATABASE: test-project-db-empty
MYSQL_USER: test-project-user-empty
MYSQL_PASSWORD: 123456
MYSQL_ROOT_PASSWORD: root
ports:
- 3320:3306
volumes:
- ./mysql:/var/lib/mysql
networks:
- app
networks:
app:
driver: bridge
ipam:
driver: default
config:
- subnet: 192.168.210.0/28