]> PHS Git Server - phs-stack.git/commitdiff
Adding TeamCity db.
authorcharleswrayjr <charleswrayjr@gmail.com>
Fri, 5 Sep 2025 00:03:44 +0000 (19:03 -0500)
committercharleswrayjr <charleswrayjr@gmail.com>
Fri, 5 Sep 2025 00:03:44 +0000 (19:03 -0500)
docker-compose.yml
images/tc-db/Dockerfile [new file with mode: 0644]

index 8ac58305df97a5aa59372df6f178055ef0f0f37a..6f4b16afa05ec61cb137ad8c4842d42bcafed22d 100644 (file)
@@ -20,6 +20,27 @@ services:
     networks:
       - phs-net
     restart: unless-stopped
+  tc-db:
+    build:
+      dockerfile: Dockerfile
+      context: ./images/db
+    hostname: tc-db
+    container_name: tc-db
+    environment:
+      PHS_ENV: ${PHS_ENV}
+      TZ: America/Chicago
+      POSTGRES_USER: postgres
+      POSTGRES_PASSWORD: ab9cfz12
+      POSTGRES_DB: postgres
+      PORT: 5432
+    ports:
+      - "54328:5432"
+    volumes:
+      - ./volumes/tc-data:/var/lib/postgresql/data
+    command: postgres -c 'max_connections=500'
+    networks:
+      - phs-net
+    restart: unless-stopped
   api:
     build:
       dockerfile: Dockerfile
diff --git a/images/tc-db/Dockerfile b/images/tc-db/Dockerfile
new file mode 100644 (file)
index 0000000..5061e56
--- /dev/null
@@ -0,0 +1 @@
+FROM postgres:12
\ No newline at end of file