diff options
| author | Joel Klinghed <the_jk@spawned.biz> | 2025-01-29 00:34:30 +0100 |
|---|---|---|
| committer | Joel Klinghed <the_jk@spawned.biz> | 2025-01-29 00:34:30 +0100 |
| commit | 05b674190f26e2a58cc7b7288586c031552d50f3 (patch) | |
| tree | 452035e852a7012061c9424a9dc0f56fcad129ee /docker/dev/docker-compose.yaml | |
| parent | 145b93302cbb7cb090c90fd07ed4ebabf742e453 (diff) | |
Add git-server to docker-compose
To make a githook that can run on alpine images (using musl) they
need to be cross-compiled. Then it became apparent that the githook
binary was pulling in all the same dependencies as the server was.
This is not good, but apparently also not something Rust/Cargo has
figured out. RFC:s has been shutdown. workspace might be an option
but then I probably need to also add a "code shared by both githook
and server" library that both can link. Problem for another day.
Diffstat (limited to 'docker/dev/docker-compose.yaml')
| -rw-r--r-- | docker/dev/docker-compose.yaml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/docker/dev/docker-compose.yaml b/docker/dev/docker-compose.yaml index dc8cf74..c020a97 100644 --- a/docker/dev/docker-compose.yaml +++ b/docker/dev/docker-compose.yaml @@ -22,9 +22,24 @@ services: - MARIADB_ROOT_PASSWORD=verysecret volumes: - 'mariadb_data:/var/lib/mysql' + git: + image: rockstorm/git-server:latest + environment: + - SSH_AUTH_METHODS=publickey + ports: + - '2222:22' + volumes: + - '${PWD}/git/authorized_keys:/home/git/.ssh/authorized_keys' + - 'git_repos:/srv/git' volumes: openldap_data: driver: local mariadb_data: driver: local + git_repos: + driver: local + driver_opts: + o: bind + type: none + device: git/repos |
