Skip to content

Commit 681c134

Browse files
committed
migrate the Compose file to the version 3
1 parent 4715978 commit 681c134

File tree

3 files changed

+23
-10
lines changed

3 files changed

+23
-10
lines changed

docker-compose.yml.dist

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
version: '2'
1+
version: '3'
22
services:
3-
app:
4-
container_name: "phpmentors.route-based-session-configuration-bundle.app"
5-
image: "phpmentors/php-app:php55"
6-
volumes:
7-
- ".:/var/app"
8-
environment:
9-
TERM: "xterm"
10-
TZ: "Asia/Tokyo"
11-
LANG: "ja_JP.UTF-8"
3+
app:
4+
build: docker
5+
network_mode: bridge
6+
volumes:
7+
- .:/var/app
8+
working_dir: /var/app
9+
environment:
10+
TZ: "Asia/Tokyo"
11+
LANG: "ja_JP.UTF-8"
12+
# PHP_INI: "docker/php.ini"

docker/Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM phpmentors/php-app:php72
2+
3+
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
4+
RUN apt-get update -y
5+
RUN apt-get upgrade -y
6+
7+
# Other tools
8+
RUN apt-get install -y less unzip

docker/php.ini.dist

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
;memory_limit=256M
2+
;xdebug.remote_autostart=on
3+
;xdebug.remote_port=9000
4+
;xdebug.remote_host=172.17.0.1

0 commit comments

Comments
 (0)