-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
34 lines (31 loc) · 903 Bytes
/
docker-compose.yml
File metadata and controls
34 lines (31 loc) · 903 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
version: "3.1"
services:
mysql:
image: mysql:5.7
container_name: wp-starter-mysql
working_dir: /application
volumes:
- .:/application
environment:
MYSQL_ROOT_PASSWORD: "${DB_PASSWORD}"
MYSQL_DATABASE: "${DB_NAME}"
MYSQL_USER: "${DB_USER}"
MYSQL_PASSWORD: "${DB_PASSWORD}"
ports:
- "${MYSQL_PORT}:3306"
webserver:
image: nginx:alpine
container_name: wp-starter-webserver
working_dir: /application
volumes:
- .:/application
- ./docker/nginx/nginx.conf:/etc/nginx/conf.d/default.conf
ports:
- "${WEB_PORT}:80"
php-fpm:
build: docker/php-fpm
container_name: wp-starter-php-fpm
working_dir: /application
volumes:
- .:/application
- ./docker/php-fpm/php-ini-overrides.ini:/etc/php/7.2/fpm/conf.d/99-overrides.ini