-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
46 lines (41 loc) · 1.02 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
###############################################################################
# Generated on phpdocker.io #
###############################################################################
np-redis:
image: phpdockerio/redis:latest
np-mysql:
image: mysql:5.7
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=appdb
- MYSQL_USER=root
- MYSQL_PASSWORD=root
volumes:
- ./db:/var/lib/mysql
np-webserver:
image: phpdockerio/nginx:latest
volumes:
- ./app:/var/www/np
- ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf
ports:
- "7000:80"
links:
- np-php-fpm
np-php-fpm:
build: .
dockerfile: php-fpm/Dockerfile
volumes:
- ./app:/var/www/np
- ./php-fpm/php-ini-overrides.ini:/etc/php/7.0/fpm/conf.d/99-overrides.ini
links:
- np-mysql
- np-redis
np-phpmy:
image: corbinu/docker-phpmyadmin
links:
- np-mysql:mysql
ports:
- 8181:80
environment:
MYSQL_USERNAME: root
MYSQL_ROOT_PASSWORD: root