File tree 11 files changed +143
-0
lines changed
11 files changed +143
-0
lines changed Original file line number Diff line number Diff line change
1
+ .idea
Original file line number Diff line number Diff line change
1
+ FROM alpine:latest
2
+
3
+
4
+
5
+ RUN apk -U upgrade && apk add \
6
+ curl \
7
+ nginx \
8
+ php7 \
9
+ php7-fpm \
10
+ && rm -rf /var/cache/apk/* \
11
+ && rm -rf /etc/nginx/conf.d \
12
+ && rm -rf /etc/php7/php-fpm.d
13
+
14
+ ADD https://github.com/just-containers/s6-overlay/releases/download/v1.19.1.1/s6-overlay-amd64.tar.gz /tmp/
15
+ RUN gunzip -c /tmp/s6-overlay-amd64.tar.gz | tar -xf - -C /
16
+
17
+ COPY basefiles /
18
+
19
+ WORKDIR /www
20
+
21
+ ENTRYPOINT ["/init"]
22
+
23
+ HEALTHCHECK --interval=5s --timeout=5s CMD curl -f http://127.0.0.1 || exit 1
Original file line number Diff line number Diff line change
1
+ FROM alpine:edge
2
+
3
+
4
+
5
+ RUN apk -U upgrade && apk add \
6
+ curl \
7
+ nginx \
8
+ php7 \
9
+ php7-fpm \
10
+ && rm -rf /var/cache/apk/* \
11
+ && rm -rf /etc/nginx/conf.d \
12
+ && rm -rf /etc/php7/php-fpm.d
13
+
14
+ ADD https://github.com/just-containers/s6-overlay/releases/download/v1.19.1.1/s6-overlay-amd64.tar.gz /tmp/
15
+ RUN gunzip -c /tmp/s6-overlay-amd64.tar.gz | tar -xf - -C /
16
+
17
+ COPY basefiles /
18
+
19
+ WORKDIR /www
20
+
21
+ ENTRYPOINT ["/init"]
22
+
23
+ HEALTHCHECK --interval=5s --timeout=5s CMD curl -f http://127.0.0.1 || exit 1
Original file line number Diff line number Diff line change
1
+ # eXistenZ' webstack container
2
+
3
+ A container running Nginx and PHP
4
+
5
+ ## Why
6
+
7
+ ## What
8
+
9
+ ## How to use this container
10
+
11
+ ### Advanced
Original file line number Diff line number Diff line change
1
+ user nginx;
2
+ worker_processes auto;
3
+ pcre_jit on;
4
+ pid /var/run/nginx.pid;
5
+ daemon off ;
6
+
7
+ events {
8
+ worker_connections 1024 ;
9
+ }
10
+
11
+ http {
12
+ include /etc/nginx/mime.types;
13
+ default_type application/octet-stream;
14
+ server_tokens off ;
15
+ client_max_body_size 1m ;
16
+ keepalive_timeout 65 ;
17
+ sendfile on ;
18
+ tcp_nodelay on ;
19
+ gzip on ;
20
+ gzip_vary on ;
21
+ gzip_static on ;
22
+
23
+ log_format main '$remote_addr - $remote_user [$time_local ] "$request " '
24
+ '$status $body_bytes_sent "$http_referer " '
25
+ '"$http_user_agent " "$http_x_forwarded_for "' ;
26
+
27
+ access_log /dev/stdout main ;
28
+ error_log /dev/stdout warn ;
29
+
30
+ server {
31
+ listen 80 default_server ;
32
+ root /www/public;
33
+ index index.php index.html;
34
+
35
+ location / {
36
+ try_files $uri $uri / /index.php;
37
+ }
38
+
39
+ location ~ \.php$ {
40
+ fastcgi_pass 127.0.0.1:9000;
41
+ include fastcgi.conf;
42
+ }
43
+
44
+ location ~ ^/(status|ping)$ {
45
+ access_log off ;
46
+ allow 127.0.0.1 ;
47
+ deny all ;
48
+ include fastcgi_params;
49
+ fastcgi_pass 127.0.0.1:9000;
50
+ }
51
+
52
+ location ~ ^/favicon.ico$ {
53
+ access_log off ;
54
+ }
55
+ }
56
+ }
Original file line number Diff line number Diff line change
1
+ [global]
2
+ pid = /var/run/php-fpm.pid
3
+ error_log = /proc/self/fd/2
4
+ log_level = notice
5
+ daemonize = no
6
+
7
+ [www]
8
+ user = nginx
9
+ group = nginx
10
+ listen = 127.0.0.1:9000
11
+ access.log = /proc/self/fd/2
12
+ catch_workers_output = yes
13
+ pm = dynamic
14
+ pm.max_children = 5
15
+ pm.start_servers = 2
16
+ pm.min_spare_servers = 1
17
+ pm.max_spare_servers = 3
18
+ pm.process_idle_timeout = 10s
19
+ pm.max_requests = 500
20
+ pm.status_path = /status
21
+ ping.path = /ping
Original file line number Diff line number Diff line change
1
+ #!/usr/bin/with-contenv sh
2
+ exec nginx
Original file line number Diff line number Diff line change
1
+ #!/usr/bin/with-contenv sh
2
+ exec php-fpm7
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ phpinfo ();
4
+
You can’t perform that action at this time.
0 commit comments