File tree 2 files changed +21
-3
lines changed
2 files changed +21
-3
lines changed Original file line number Diff line number Diff line change @@ -30,22 +30,37 @@ services:
30
30
restart : always
31
31
working_dir : /apps
32
32
33
+ # Redis
34
+ redis :
35
+ image : redis:latest
36
+ ports :
37
+ - 6379:6379
38
+ container_name : redis
39
+ # environment:
40
+ # REDIS_PASSWORD: "luvvien"
41
+ command : redis-server --requirepass luvvien
42
+ volumes :
43
+ - ./services/redis/data:/data
44
+ restart : always
45
+
33
46
# nginx
34
47
nginx :
35
- image : nginx:latest
48
+ image : pagespeed/ nginx-pagespeed
36
49
container_name : nginx
37
50
ports :
38
51
- 80:80
39
52
- 443:443
40
53
links :
41
54
- mysql
55
+ - nginx
42
56
depends_on :
43
57
- php-fpm
44
58
- mysql
59
+ - redis
45
60
volumes :
46
61
- ./apps:/apps
47
- - ./services/nginx/config/conf.d:/etc/nginx/conf.d:ro
48
- - ./services/nginx/config/cert:/etc/nginx/cert:ro
62
+ - ./services/nginx/config/conf.d:/etc/nginx/conf.d
63
+ - ./services/nginx/config/cert:/etc/nginx/cert
49
64
- ./services/nginx/config/nginx.conf:/etc/nginx/nginx.conf
50
65
- ./logs/nginx:/var/log/nginx
51
66
restart : always
Original file line number Diff line number Diff line change
1
+ # ignore all except .gitignore file
2
+ *
3
+ ! .gitignore
You can’t perform that action at this time.
0 commit comments