Skip to content

Commit

Permalink
improve
Browse files Browse the repository at this point in the history
  • Loading branch information
vjik committed Oct 17, 2024
1 parent 529ded1 commit 130fe3a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 15 deletions.
6 changes: 2 additions & 4 deletions blog-api/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '3'

services:
php:
container_name: yii-php
Expand All @@ -11,8 +9,8 @@ services:
image: nginx:alpine
container_name: yii-nginx
ports:
- 8080:80
- 8081:81
- "8080:80"
- "8081:81"
volumes:
- ./:/app
- ./data/nginx/:/etc/nginx/conf.d/
Expand Down
20 changes: 9 additions & 11 deletions blog/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
version: '3'

services:
php:
image: yiisoftware/yii-php:8.3-apache
working_dir: /app
volumes:
- ./:/app
# host-volume for composer cache
- ~/.composer-docker/cache:/root/.composer/cache:delegated
ports:
- '30080:80'
php:
image: yiisoftware/yii-php:8.3-apache
working_dir: /app
volumes:
- ./:/app
# host-volume for composer cache
- ~/.composer-docker/cache:/root/.composer/cache:delegated
ports:
- "30080:80"

0 comments on commit 130fe3a

Please sign in to comment.