-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
60 lines (55 loc) · 1.39 KB
/
docker-compose.yaml
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
48
49
50
51
52
53
54
55
56
57
58
59
60
version: '2.1'
services:
nginx:
depends_on:
- "php"
image: "nginx"
volumes:
- "./conf/nginx/conf.d:/etc/nginx/conf.d"
- "./www:/usr/share/nginx/html"
ports:
- "80:80"
networks:
- php-develop-network
container_name: "php-develop-nginx"
command: /bin/bash -c "mkdir -p /var/www && ln -s /usr/share/nginx/html /var/www && nginx -g 'daemon off;'"
php:
image: "qifa-bs-dev-php-fpm"
volumes:
- "./www:/var/www/html"
- "./conf/supervisor/conf.d:/etc/supervisor/conf.d"
- "./conf/supervisor/supervisord.conf:/etc/supervisor/supervisord.conf"
ports:
- "9001:9001"
build:
context: .
dockerfile: "Dockerfile.php"
networks:
- php-develop-network
container_name: "php-develop-php-fpm"
command: /bin/bash -c "service supervisor start && php-fpm"
mysql:
image: mysql:5.7
volumes:
- "./data:/var/lib/mysql"
- "./conf/mysql:/etc/mysql/conf.d/source"
environment:
MYSQL_ROOT_PASSWORD: #3$4%5^6&7
ports:
- "3306:3306"
networks:
- php-develop-network
container_name: "php-develop-mysql"
command: /bin/bash -c "cp /etc/mysql/conf.d/source/* /etc/mysql/conf.d/ && /entrypoint.sh mysqld"
redis:
image: "redis"
ports:
- "6379:6379"
networks:
- php-develop-network
volumes:
- "./conf/redis/redis.conf:/usr/local/etc/redis/redis.conf"
container_name: "php-develop-redis"
networks:
php-develop-network:
driver: bridge