File tree 7 files changed +11
-9
lines changed
7 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ FROM composer/composer:1.1 as composer
2
2
3
3
ARG version=dev-master
4
4
ARG http_version=dev-master
5
+
5
6
RUN mkdir /ppm && cd /ppm && composer require php-pm/php-pm:${version} && composer require php-pm/httpkernel-adapter:${http_version}
6
7
7
8
FROM alpine:3.7
@@ -27,7 +28,7 @@ RUN apk --no-cache add nginx
27
28
ADD etc/nginx_default.conf /etc/nginx/sites-enabled/default
28
29
ADD etc/nginx.conf /etc/nginx/nginx.conf
29
30
30
- EXPOSE 80
31
+ EXPOSE 8080
31
32
32
33
COPY --from=composer /ppm /ppm
33
34
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ ADD etc/php.ini /etc/php7/php.ini
23
23
24
24
RUN apk --no-cache add bash
25
25
26
- EXPOSE 80
26
+ EXPOSE 8080
27
27
28
28
COPY --from=composer /ppm /ppm
29
29
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ ADD etc/php.ini /etc/php7/php.ini
23
23
24
24
RUN apk --no-cache add bash
25
25
26
- EXPOSE 80
26
+ EXPOSE 8080
27
27
28
28
COPY --from=composer /ppm /ppm
29
29
Original file line number Diff line number Diff line change 1
1
server {
2
- listen 80 ;
2
+ listen 8080 ;
3
3
server_name _;
4
4
root STATIC_DIRECTORY;
5
5
@@ -14,6 +14,6 @@ server {
14
14
proxy_set_header X-Real-IP $remote_addr;
15
15
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
16
16
proxy_set_header X-Forwarded-Proto $scheme;
17
- proxy_pass http://127.0.0.1:8080 ;
17
+ proxy_pass http://127.0.0.1:8081 ;
18
18
}
19
19
}
Original file line number Diff line number Diff line change 15
15
16
16
mkdir -p /ppm/run
17
17
chmod -R 777 /ppm/run
18
- ARGS=' --port=8080 --socket-path=/ppm/run --pidfile=/ppm/ppm.pid'
18
+ ARGS=' --port=8081 --socket-path=/ppm/run --pidfile=/ppm/ppm.pid'
19
19
20
20
# make sure static-directory is not served by php-pm
21
21
ARGS=" $ARGS --static-directory=''"
22
22
23
- trapIt /ppm/vendor/bin/ppm start --ansi $ARGS $@
23
+ trapIt /ppm/vendor/bin/ppm start --ansi $ARGS $@
Original file line number Diff line number Diff line change 2
2
3
3
trapIt () { " $@ " & pid=" $! " ; trap " kill -INT $pid " INT TERM; while kill -0 $pid > /dev/null 2>&1 ; do wait $pid ; ec=" $? " ; done ; exit $ec ; };
4
4
5
- trapIt /ppm/vendor/bin/ppm --ansi " $@ "
5
+ ARGS=' --port 8080'
6
+ trapIt /ppm/vendor/bin/ppm start --ansi $@
Original file line number Diff line number Diff line change 2
2
3
3
trapIt () { " $@ " & pid=" $! " ; trap " kill -INT $pid " INT TERM; while kill -0 $pid > /dev/null 2>&1 ; do wait $pid ; ec=" $? " ; done ; exit $ec ; };
4
4
5
- ARGS=' --port 80 '
5
+ ARGS=' --port 8080 '
6
6
trapIt /ppm/vendor/bin/ppm start --ansi $ARGS $@
You can’t perform that action at this time.
0 commit comments