Skip to content

Commit 880947f

Browse files
committed
use openresty images,map nginx log
1 parent 59d0721 commit 880947f

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

docker-compose.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: '2'
22
services:
33
nginx:
4-
image: nginx
4+
image: openresty/openresty
55
hostname: nginx
66
container_name: nginx
77
ports:
@@ -10,8 +10,9 @@ services:
1010
- ./docker/nginx/nginx.env
1111
- ./.env
1212
volumes:
13-
- ./docker/nginx/etc/nginx.conf:/etc/nginx/nginx.conf
14-
- ./docker/nginx/etc/conf.d:/etc/nginx/conf.d
13+
- ./docker/nginx/logs/:/usr/local/openresty/nginx/logs
14+
- ./docker/nginx/etc/nginx.conf:/usr/local/openresty/nginx/conf/nginx.conf
15+
- ./docker/nginx/etc/conf.d:/usr/local/openresty/nginx/conf/conf.d
1516
depends_on:
1617
- node
1718
node:

0 commit comments

Comments
 (0)