-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlemp74.yml
55 lines (51 loc) · 1.2 KB
/
lemp74.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.7'
services:
nginx:
image: nginx:latest
container_name: LEAMP_nginx
restart: always
volumes:
- './log/nginx/:/var/log/nginx/'
- './etc/nginx/default.template.conf:/etc/nginx/conf.d/default.template'
- './etc/nginx/default.conf:/etc/nginx/conf.d/default.conf'
- './src:/var/www/html'
command: /bin/sh -c "nginx -g 'daemon off;'"
depends_on:
- php
links:
- php
ports:
- 80:80
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: LEAMP_phpmyadmin
restart: always
environment:
PMA_HOST: LEAMP_mysql
links:
- database
ports:
- 9192:80
database:
image: mysql:5.7
container_name: LEAMP_mysql
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
MYSQL_ROOT_PASSWORD: 'toor'
volumes:
- './docker/db:/var/lib/mysql'
- './log/mysql/:/var/log/mysql/'
ports:
- 9193:3306
php:
build: ./docker/lemp74
container_name: LEAMP_php
restart: always
environment:
XDEBUG_CONFIG: remote_host=host.docker.internal remote_port=9000 remote_enable=0
volumes:
- './src:/var/www/html'
links:
- database
ports:
- 9194:9000