forked from kemallt/firstTestTask
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (43 loc) · 1010 Bytes
/
docker-compose.yml
File metadata and controls
43 lines (43 loc) · 1010 Bytes
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
version: '3'
services:
db:
image: mysql:8
ports:
- 3306:3306
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: test
volumes:
- ./Docker/mysql:/var/lib/mysql
command: --default-authentication-plugin=mysql_native_password
db2:
image: mysql:8
ports:
- 3307:3306
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: test
volumes:
- ./Docker/mysql1:/var/lib/mysql
command: --default-authentication-plugin=mysql_native_password
nginx:
image: nginx:1.13
environment:
APP_NAME: app
ports:
- 80:80
- 443:443
volumes:
- ./:/var/www/
- ./Docker/nginx:/usr/share/nginx/html
- ./Docker/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./Docker/nginx/logs:/var/log/nginx/
app:
build:
args:
WEB_USER_ID: 1000
WEB_USER_NAME: cahtel
context: Docker/app
volumes:
- ./:/var/www
- ./Docker/app/php.ini:/usr/local/etc/php/custom.d