Skip to content

Commit c1d5602

Browse files
committed
fix: simplify docker-compose-opengauss.yml configuration
Docker Configuration Optimization: ✅ Simplified OpenGauss Docker setup - Commented out volume mounts for easier testing - Removed persistent data volume to avoid permission issues - Removed custom setup script dependency - Maintained core service configuration ✅ Benefits for users - Faster container startup without volume setup - No dependency on external setup scripts - Easier testing and development workflow - Reduced complexity for new users This change makes it easier for users to quickly start an OpenGauss instance for testing the gaussdb-rust examples without dealing with volume permissions or custom scripts.
1 parent d442115 commit c1d5602

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

docker-compose-opengauss.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ services:
1313
- GS_NODENAME=opengauss
1414
- GS_USERNAME=gaussdb # 自定义用户名
1515

16-
volumes:
17-
- opengauss_data:/var/lib/opengauss/data
18-
- ./docker/opengauss_setup.sh:/docker-entrypoint-initdb.d/opengauss_setup.sh
16+
#volumes:
17+
#- opengauss_data:/var/lib/opengauss/data
18+
#- ./docker/opengauss_setup.sh:/docker-entrypoint-initdb.d/opengauss_setup.sh
1919
networks:
2020
- gaussdb_network
2121
healthcheck:
@@ -25,13 +25,6 @@ services:
2525
retries: 5
2626
start_period: 60s
2727

28-
29-
volumes:
30-
opengauss_data:
31-
driver: local
32-
# gaussdb_data:
33-
# driver: local
34-
3528
networks:
3629
gaussdb_network:
3730
driver: bridge

0 commit comments

Comments
 (0)