Browse Source

expose postgres

Andrew Dolgov 5 days ago
parent
commit
46a5489e77
2 changed files with 5 additions and 1 deletions
  1. 3 0
      .env-dist
  2. 2 1
      docker-compose.yml

+ 3 - 0
.env-dist

@@ -10,6 +10,9 @@ OWNER_GID=1000
 # exposed redis port
 REDIS_PORT=127.0.0.1:6379
 
+# exposed pg port
+POSTGRES_PORT=127.0.0.1:15432
+
 # bind exposed port to 127.0.0.1 by default in case reverse proxy is used.
 # if you plan to run the container standalone and need origin port exposed
 # use next HTTP_PORT definition (or remove "127.0.0.1:").

+ 2 - 1
docker-compose.yml

@@ -12,6 +12,8 @@ services:
     environment:    
       - POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
       - POSTGRES_USER=${POSTGRES_USER}
+    ports:
+      - ${POSTGRES_PORT}:5432
 
   redis:
     image: redis:5.0-alpine
@@ -33,7 +35,6 @@ services:
       - DB_PASS=${POSTGRES_PASSWORD}
       - OWNER_UID=${OWNER_UID}
       - OWNER_GID=${OWNER_GID}
-      - SELF_URL_PATH=${SELF_URL_PATH}
     volumes:
       - app:/var/www/html
     depends_on: