]> PHS Git Server - phs-stack.git/commitdiff
Adding TeamCity and YouTrack.
authorcharleswrayjr <charleswrayjr@gmail.com>
Fri, 5 Sep 2025 03:50:38 +0000 (22:50 -0500)
committercharleswrayjr <charleswrayjr@gmail.com>
Fri, 5 Sep 2025 03:50:38 +0000 (22:50 -0500)
docker-compose.yml

index bb428041b1052c14d90e10f7d3fc362923bcde70..1dc84e2fa67607bd8c3dbca1fd95cc337d122de2 100644 (file)
@@ -17,6 +17,11 @@ services:
     volumes:
       - ./volumes/data:/var/lib/postgresql/data
     command: postgres -c 'max_connections=500'
+    healthcheck:
+      test: [ "CMD-SHELL", "pg_isready -U postgres" ]
+      interval: 5s
+      timeout: 5s
+      retries: 5
     networks:
       - phs-net
     restart: unless-stopped
@@ -77,10 +82,10 @@ services:
       - TEAMCITY_JDBC_URL=jdbc:postgresql://phs-db:5432/postgres
       - TEAMCITY_JDBC_USERNAME=postgres
       - TEAMCITY_JDBC_PASSWORD=ab9cfz12
-      - POSTGRES_DB=postgres
-      - POSTGRES_USER=postgres
-      - POSTGRES_PASSWORD=ab9cfz12
       - TEAMCITY_SERVER_MEM_OPTS=-Xmx2g
+    depends_on:
+      db:
+        condition: service_healthy
     networks:
       - phs-net
 #  youtrack: