Add network v2

This commit is contained in:
2025-07-08 16:37:23 +05:30
parent e7fe411daf
commit 34ded33aeb
10 changed files with 73 additions and 8 deletions

View File

@@ -12,6 +12,8 @@ services:
- ${APPDATA_PATH}/opengist/db:/var/lib/mysql
ports:
- ${DB_PORT}:3306
networks:
- backend
restart: unless-stopped
healthcheck:
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
@@ -44,4 +46,13 @@ services:
- ${APPDATA_PATH}/opengist/data:/opengist
ports:
- ${SERVER_PORT}:6157
networks:
- frontend
- backend
restart: unless-stopped
networks:
frontend:
external: true
backend:
external: true

View File

@@ -10,6 +10,8 @@ services:
- ${APPDATA_PATH}/opengist/db:/var/lib/postgresql/data
ports:
- ${DB_PORT}:5432
networks:
- backend
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -d ${POSTGRES_DB} -U ${POSTGRES_USER}"]
@@ -42,4 +44,13 @@ services:
- ${APPDATA_PATH}/opengist/data:/opengist
ports:
- ${SERVER_PORT}:6157
networks:
- frontend
- backend
restart: unless-stopped
networks:
frontend:
external: true
backend:
external: true