forked from phpdocker-io/phpdocker.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
47 lines (43 loc) · 1.24 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
###############################################################################
# Generated on phpdocker.io #
###############################################################################
version: "3.1"
services:
memcached:
image: memcached:alpine
container_name: phpdocker-io-memcached
mailhog:
image: mailhog/mailhog:latest
container_name: phpdocker-io-mailhog
ports:
- "10001:8025"
mysql:
image: mysql:5.7
container_name: phpdocker-io-mysql
environment:
- MYSQL_ROOT_PASSWORD=root-password
- MYSQL_DATABASE=phpdockerio
- MYSQL_USER=username
- MYSQL_PASSWORD=password
webserver:
image: nginx:alpine
container_name: phpdocker-io-webserver
volumes:
- .:/var/www/phpdocker-io
- ./phpdocker/nginx/nginx.conf:/etc/nginx/conf.d/default.conf
ports:
- "10000:80"
links:
- php-fpm
php-fpm:
build:
context: .
dockerfile: phpdocker/php-fpm/Dockerfile
container_name: phpdocker-io-php-fpm
volumes:
- .:/var/www/phpdocker-io
- ./phpdocker/php-fpm/php-ini-overrides.ini:/etc/php/7.1/fpm/conf.d/99-overrides.ini
links:
- memcached
- mailhog
- mysql