-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
45 lines (43 loc) · 1.03 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
version: '3.7'
services:
php-fpm:
build: .
container_name: web
ports:
- "8000:80"
volumes:
- ./src:/var/www/html
- ./src/php.ini:/usr/local/etc/php/php.ini
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./nginx/default:/etc/nginx/sites-available/default
restart: always
depends_on:
- 'mysql'
mysql:
image: mysql:5.7
container_name: mysql
command:
[
# origin default is caching_sha2_password
--default-authentication-plugin=mysql_native_password,
]
volumes:
- ./mysql/setup_db.sql:/docker-entrypoint-initdb.d/init.sql:ro
- mysql-data:/var/lib/mysql:rw
- mysql-config:/etc/mysql:rw
environment:
MYSQL_ROOT_PASSWORD: nctfuchathc
restart: always
httpd:
build: yen
container_name: tinyhttpd
restart: always
volumes:
- ./yen/htdocs:/htdocs
ports:
- "10201:10201"
volumes:
mysql-config:
name: db-config
mysql-data:
name: db-data