Important
The release v1.2.3
of docker compose installation has been optimized in the directory structure, which is slightly different from the previous version. For this, if you have old data, please make two modifications:
Configuration changes:
Note: All configurations should be passed through the environment variables in .env
. Please refer to the variable comments for the actual changes.
- Added variables.
- CSGHUB_IMAGE_PREFIX is used to specify the image repository location
- SPACE_APP_INTERNAL_HOST is used to specify the Knative Serving network service address
- CSGHUB_WITH_K8S controls whether to integrate k8s
- KUBE_CONFIG_DIR specifies the local .kube/config file directory
- Remove variables.
- SERVER_INTERNAL_DOMAIN
- SPACE_BUILDER_SERVER,DOCKER_REGISTRY_*
- SPACE_APP_INTERNAL_DOMAIN_PORT
- SPACE_APP_EXTERNAL_DOMAIN
- Rename variables.
- SPACE_APP_NS ==> SPACE_APP_NAMESPACE
- KNATIVE_GATEWAY_HOST ==> SPACE_APP_INTERNAL_HOST
- KNATIVE_GATEWAY_PORT ==> SPACE_APP_INTERNAL_PORT
- SERVER_CASDOOR_PORT ==> CASDOOR_PORT (reset to 8000)
- Extract other shared variables to adapt to external services.
- The docker server address no longer needs to be provided, and the docker server now runs as dind service by default.
- You do not need to manually create
docker-registry-config
in k8s, this operation will be automatically completed during installation. - Now cancel the exposure of ports of other services except nginx proxy, and expose them through nginx proxy.
- 80 default csghub service access port
- 2222 default git ssh clone port
- 5000 default registry image warehouse service port
- 8000 default casdoor User management service port
- 9000-9001 Default minio object storage service port
Notes: Port modification is also done through.env
- All configuration files are now stored in the
./configs
directory and data files stored in the./data
by default. If there is no special requirement, no manual modification is required.
Data changes
Remove the use of docker volumes for easier management:
- volume:redis ==> ./data/redis (uid:999, gid: root)
- volume:pgdata ==> ./data/postgresql/data (uid:999, gid: root)
- volume:minio_data ==> ./data/minio (uid:1001, gid: root)
- ./space_data ==> ./data/csghub_space_builder
- ./nats/jetstream ==> ./data/nats/jetstream
- ./data/data/gitaly/git/repositories ==> ./data/gitaly/repositories
Notes: If an old data directory exists, move the directory according to the corresponding management.
Log directory:
All log files are stored in the ./logs
directory.
What's Changed
- Fixed wrong column name by @MasonXon in #84
- Fixed helm install failed by @MasonXon in #85
- Nvidia plugin failed install by @MasonXon in #87
- Update docker and compose docs by @MasonXon in #89
- Fixed missing minio secret reference by @MasonXon in #90
- Refactor docker compose by @MasonXon in #91
- Fixed envs wrong spell by @MasonXon in #92
- Update docs to enable ARM64 support by @MasonXon in #95
- Tuning config by @MasonXon in #93
- Update gitaly and gitlab-shell by @MasonXon in #94
- Update docs by @MasonXon in #96
- Move CSGHUB_WITH_K8S from startup to .env by @MasonXon in #98
- Fix main docker compose by @MasonXon in #99
- Tuning docker omnibus by @MasonXon in #101
- Disable casdoor enableSigninSession by @MasonXon in #103
Full Changelog: v1.2.2...v1.2.3