File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed
Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 1- ARG BASE_TAG=php8.2-alpine
1+ ARG BASE_TAG=5.0.3-php8.2-alpine
2+ # php8.2-alpine -> = 5.1 swoole = alpine 3.19 = php 8.2 rc 18 with psql bug
23
34# https://hub.docker.com/r/phpswoole/swoole
45FROM phpswoole/swoole:$BASE_TAG
@@ -16,8 +17,6 @@ RUN set -ex \
1617 openssl \
1718 postgresql \
1819 postgresql-dev \
19- php82=8.2.16-r0 \
20- php82-pdo_pgsql=8.2.16-r0 \
2120 jpeg-dev \
2221 libpng-dev \
2322 libjpeg-turbo \
@@ -44,5 +43,5 @@ USER nobody
4443# Expose the port nginx is reachable on
4544EXPOSE 8080
4645
47- # Let supervisord start nginx + octane
46+ # Let supervisord start nginx & php-fpm
4847CMD ["/usr/bin/supervisord" , "-c" , "/etc/supervisor/conf.d/supervisord.conf" ]
Original file line number Diff line number Diff line change 11<?php
2- $ dsn = 'pgsql:host=host.docker.internal;port=5432;dbname=postgres ' ;
2+ $ dsn = 'pgsql:host=host.docker.internal;port=5432;dbname=vra_cloud_api ' ;
33try {
4- $ pdo = new PDO ($ dsn , 'postgres ' , 'password ' );
4+ $ pdo = new PDO ($ dsn , 'sail ' , 'password ' );
55 echo "Connected successfully " ;
66} catch (PDOException $ e ) {
77 echo "Connection failed: " . $ e ->getMessage ();
You can’t perform that action at this time.
0 commit comments