From a4ce1d248e032fb92787e1b51d9065c4e5b41cef Mon Sep 17 00:00:00 2001 From: root Date: Wed, 23 Jul 2025 15:19:41 +0700 Subject: [PATCH] customize docker build --- docker-compose.yml | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 12df7fc..426e190 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,12 +6,35 @@ services: volumes: - catalina_home:/opt/tomcat9 - smart_data:/data/SMARTConnect + networks: + - frontend + - backend + ports: + - "8080:8080" + - "8443:8443" + stdin_open: true + tty: true + pgsql-postgis: + container_name: pgsql-postgis + image: postgis/postgis:11-2.5 + environment: + PGDATA: /pgdata + POSTGRES_PASSWORD: dspace + volumes: + - pgdata:/pgdata + networks: + - backend ports: - "8080:8080" - "8443:8443" stdin_open: true tty: true +networks: + frontend: + backend: + volumes: catalina_home: - smart_data: \ No newline at end of file + smart_data: + pgdata: \ No newline at end of file