forked from Qsnh/meedu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
58 lines (53 loc) · 1.13 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
48
49
50
51
52
53
54
55
56
57
58
version: '3.1'
services:
php:
container_name: "meedu-php"
# build:
# context: ./docker
image: registry.cn-hangzhou.aliyuncs.com/xiaoteng/meedu-php:v1
volumes:
- ./:/var/www/html/
restart: always
expose:
- "9000"
networks:
- meedu-net
mysql:
container_name: "meedu-mysql"
image: mysql:5.7
ports:
- "3306:3306"
volumes:
- ./docker/mysql/logs:/logs/:rw
- ./docker/mysql/data:/var/lib/mysql/:rw
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: meedu
restart: always
networks:
- meedu-net
nginx:
container_name: "meedu-nginx"
image: nginx:1.15.7
ports:
- "80:80"
- "443:443"
volumes:
- .:/var/www/html/:rw
- ./docker/nginx/conf.d:/etc/nginx/conf.d/:rw
- ./docker/nginx/logs:/var/log/nginx/:rw
- ./docker/nginx/ssl:/etc/nginx/ssl
restart: always
networks:
- meedu-net
redis:
container_name: "meedu-redis"
image: redis:latest
ports:
- "6379:6379"
restart: always
networks:
- meedu-net
networks:
meedu-net:
external: true