File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ RUN set -ex \
16
16
openssl \
17
17
postgresql \
18
18
postgresql-dev \
19
+ php82=8.2.16-r0 \
19
20
php82-pdo_pgsql=8.2.16-r0 \
20
21
jpeg-dev \
21
22
libpng-dev \
@@ -43,5 +44,5 @@ USER nobody
43
44
# Expose the port nginx is reachable on
44
45
EXPOSE 8080
45
46
46
- # Let supervisord start nginx & php-fpm
47
+ # Let supervisord start nginx + octane
47
48
CMD ["/usr/bin/supervisord" , "-c" , "/etc/supervisor/conf.d/supervisord.conf" ]
Original file line number Diff line number Diff line change
1
+ <?php
2
+ $ dsn = 'pgsql:host=host.docker.internal;port=5432;dbname=postgres ' ;
3
+ try {
4
+ $ pdo = new PDO ($ dsn , 'postgres ' , 'password ' );
5
+ echo "Connected successfully " ;
6
+ } catch (PDOException $ e ) {
7
+ echo "Connection failed: " . $ e ->getMessage ();
8
+ }
You can’t perform that action at this time.
0 commit comments