-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
49 lines (46 loc) · 1.26 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
version: "3.1"
services:
mysql:
image: mysql:5.6
container_name: lemp-mysql
working_dir: /application
volumes:
- ./sql-init:/docker-entrypoint-initdb.d
- ./database_data:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=iamgrootroot
- MYSQL_DATABASE=lemp_database
- MYSQL_USER=lemp_username
- MYSQL_PASSWORD=CorrectHorseBatteryStaple
ports:
- "8082:3306"
webserver:
image: nginx:alpine
container_name: lemp-webserver
working_dir: /application
volumes:
- .:/application
- ./docker/nginx/nginx.conf:/etc/nginx/conf.d/default.conf
links:
- mysql
ports:
- "8080:80"
php-fpm:
build: docker/php
container_name: lemp-php-fpm
working_dir: /application
volumes:
- .:/application
- ./docker/php/php-ini-overrides.ini:/etc/php/7.0/fpm/conf.d/99-overrides.ini
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: lemp-phpmyadmin
links:
- "mysql:db"
ports:
- 8181:80
environment:
- PMA_ARBITRARY=1
- MYSQL_USER=lemp_username
- MYSQL_PASSWORD=CorrectHorseBatteryStaple
- MYSQL_ROOT_PASSWORD=iamgrootroot