Skip to content

Commit

Permalink
yii-starter-kit#654. Update nginx config on the fly inside docker-com…
Browse files Browse the repository at this point in the history
…pose.
  • Loading branch information
alfredleo committed Feb 27, 2019
1 parent 5b76159 commit 79eb51a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pwd-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ version: "3"
volumes:
starter_kit_app: {}
mysql_config: {}
nginx_config: {}

services:
source:
Expand All @@ -16,7 +15,6 @@ services:
volumes:
- starter_kit_app:/data/git/repos/yii2-starter-kit
- mysql_config:/data/git/repos/yii2-starter-kit/docker/mysql
- nginx_config:/data/git/repos/yii2-starter-kit/docker/nginx

app:
image: alfredleo/starter_kit_app:secondtry
Expand All @@ -41,7 +39,7 @@ services:
- 80:80
volumes:
- starter_kit_app:/app
- nginx_config:/etc/nginx/conf.d
command: sh -c "cp /app/docker/nginx/default.conf /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;' "
depends_on:
- app
- source
Expand Down

0 comments on commit 79eb51a

Please sign in to comment.