-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (49 loc) · 1.1 KB
/
Copy pathdocker-compose.yml
File metadata and controls
53 lines (49 loc) · 1.1 KB
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
version: '3'
services:
nginx:
image: nginx:latest
ports:
- '80:80'
- '443:443'
links:
- 'php7'
volumes:
- ./build/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./build/nginx/fastcgi.conf:/etc/nginx/fastcgi.conf
- ./build/nginx/error.log:/home/wwwlogs/nginx_error.log
- ./build/nginx/access.log:/home/wwwlogs/nginx_access.log
- ../blog:/data/website/blog
depends_on:
- php7
php7:
build: ./build/php
volumes:
- ../blog:/data/website/blog
ports:
- '9501:9501'
- '9000:9000'
links:
- mysql8
- redis
stdin_open: true
tty: true
depends_on:
- mysql8
- redis
mysql8:
build: ./build/mysql
environment:
MYSQL_ROOT_PASSWORD: yourpassword
ports:
- '3306:3306'
volumes:
- /data/mysql:/var/lib/mysql
- ./build/mysql/blog.cnf:/etc/mysql/conf.d/source/blog.cnf
redis:
image: redis
restart: always
ports:
- 6379:6379
volumes:
- ./build/redis/redis.conf:/etc/redis/redis.conf
command: redis-server /etc/redis/redis.conf