Skip to content

Commit 72320e5

Browse files
author
igor-chepurnoi
committed
added docker-compose.override
1 parent 9912ca0 commit 72320e5

File tree

5 files changed

+12
-6
lines changed

5 files changed

+12
-6
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,4 @@ tests/_output/*
3939
tests/_support/_generated
4040

4141
/.env
42+
/docker-compose.override.yml

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ You can install the application using the following commands:
9797
```sh
9898
composer create-project --no-install yii2mod/base yii2mod-base
9999
cd yii2mod-base
100-
cp .env.dist .env
100+
cp .env{.dist,}
101+
cp docker-compose.override.yml{.dist,}
101102
docker-compose up --build
102103
```
103104
It may take some minutes to download the required docker images. When

data/docker/web/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM php:7.1-apache
1+
FROM php:7.1.1-apache
22

33
MAINTAINER Igor Chepurnoi <[email protected]>
44

docker-compose.override.yml.dist

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: '2'
2+
services:
3+
web:
4+
ports:
5+
- "80:80"
6+
db_admin:
7+
ports:
8+
- "8088:80"

docker-compose.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,13 @@ services:
2020
HOST_UID: ${HOST_UID}
2121
volumes:
2222
- .:/var/www/html
23-
ports:
24-
- "80:80"
2523
links:
2624
- db
2725
depends_on:
2826
- db
2927

3028
db_admin:
3129
build: ./data/docker/dbadmin
32-
ports:
33-
- "8088:80"
3430
links:
3531
- db
3632
depends_on:

0 commit comments

Comments
 (0)