-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yaml
68 lines (67 loc) · 1.51 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
61
62
63
64
65
66
67
68
version: "3"
services:
nginx:
container_name: easy-nginx
image: nginx:1.15-alpine
build: ./nginx
volumes:
- ./www:/mnt/www
- ./nginx/conf/conf.d:/etc/nginx/conf.d
# - ./etc/nginx/conf/nginx.conf:/etc/nginx/nginx.conf
- ./runtime/logs/nginx:/tmp/logs/nginx
ports:
- "80:80"
# - "443:443"
networks:
- default
php727:
container_name: easy-php
image: php:7.2.7-fpm-alpine3.6
build: ./php
volumes:
- ./www:/mnt/www
- ./php/conf/php-fpm.d:/usr/local/etc/php-fpm.d
- ./php/conf/php-fpm.conf:/usr/local/etc/php-fpm.conf
- ./php/extensions/:/usr/local/lib/php/extensions
- ./runtime/logs/php:/tmp/logs/php
- ./php/conf/conf.d:/usr/local/etc/php/conf.d
ports:
- "9000:9000"
networks:
- default
redis:
container_name: easy-redis
image: redis:4-alpine
build: ./redis
volumes:
- ./runtime/logs/redis:/tmp/logs/redis
ports:
- "6379:6379"
networks:
- default
mysql:
container_name: easy-mysql
image: mysql:5.7
build: ./mysql
environment:
MYSQL_ROOT_PASSWORD: easy
volumes:
- ./runtime/logs/redis:/tmp/logs/mysql
ports:
- "3306:3306"
networks:
- default
mongo:
container_name: easy-mongo
image: mongo:3.6-jessie
build: ./mongo
volumes:
- ./runtime/logs/mongo:/tmp/logs/mongo
ports:
- "27017:27017"
networks:
- default
networks:
default:
external:
name: easy