-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
40 lines (39 loc) · 1011 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
39
40
version: '3'
services:
web:
image: nginx
ports:
- "8080:80"
volumes:
- ./html:/html
- ./conf.d:/etc/nginx/conf.d
networks:
- lnmp_net
php:
build: ./php
volumes:
- ./html:/html
expose:
- 9000
networks:
- lnmp_net
links:
- db
db:
image: mysql
command: --default-authentication-plugin=mysql_native_password
restart: always
volumes:
- ./data:/var/lib/mysql
ports:
- "3306:3306"
expose:
- 3306
environment:
MYSQL_ROOT_PASSWORD: mysql12345678
MYSQL_DATABASE: test
PMA_HOST: mysql
networks:
- lnmp_net
networks:
lnmp_net: