diff options
| author | Joel Klinghed <the_jk@spawned.biz> | 2025-02-09 23:56:38 +0100 |
|---|---|---|
| committer | Joel Klinghed <the_jk@spawned.biz> | 2025-02-09 23:56:38 +0100 |
| commit | bf025b4977543a371df9dbdddfe9cc2f02f2a8d0 (patch) | |
| tree | fc8937a3b5f3311ff7b8209aec3961668ac83d8c /docker/integration_test/docker-compose.yaml | |
| parent | bd74717e10fb36e19893c15941876b2383b94714 (diff) | |
First integration test
Sets up a whole slew of docker instances, all started from clean
slate for test.
Diffstat (limited to 'docker/integration_test/docker-compose.yaml')
| -rw-r--r-- | docker/integration_test/docker-compose.yaml | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/docker/integration_test/docker-compose.yaml b/docker/integration_test/docker-compose.yaml new file mode 100644 index 0000000..628973f --- /dev/null +++ b/docker/integration_test/docker-compose.yaml @@ -0,0 +1,77 @@ +services: + openldap: + image: bitnami/openldap:latest + ports: + - '1389' + - '1636' + environment: + - LDAP_ADMIN_USERNAME=admin + - LDAP_ADMIN_PASSWORD=adminpassword + - LDAP_USERS=user01,user02,user03 + - LDAP_PASSWORDS=password1,password2,password3 + volumes: + - 'it_openldap_data:/bitnami/openldap' + mariadb: + image: mariadb:latest + ports: + - '3306' + environment: + - MARIADB_USER=eyeballs + - MARIADB_PASSWORD=secret + - MARIADB_DATABASE=eyeballs + - MARIADB_RANDOM_ROOT_PASSWORD=1 + healthcheck: + test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"] + start_period: 10s + interval: 10s + timeout: 5s + retries: 3 + volumes: + - 'it_mariadb_data:/var/lib/mysql' + remote_git: + image: rockstorm/git-server:latest + ports: + - '12222:22' + volumes: + - './web/gitkey.pub:/home/git/.ssh/authorized_keys' + - 'it_remote_git:/srv/git' + local_git: + image: rockstorm/git-server:latest + environment: + - SSH_AUTH_METHODS=publickey + depends_on: + - web + ports: + - '10022:22' + volumes: + - 'it_git_auth:/home/git/.ssh' + - 'it_git_repos:/srv/git' + web: + build: + context: ../../ + dockerfile: ./docker/integration_test/web/Dockerfile + depends_on: + openldap: + condition: service_started + mariadb: + condition: service_healthy + environment: + - LDAP_URL=ldap://openldap:1389 + - DB_URL=mysql://eyeballs:secret@mariadb:3306/eyeballs + ports: + - '18000:8000' + volumes: + - 'it_git_auth:/git/auth' + - 'it_git_repos:/git/repos' + +volumes: + it_openldap_data: + driver: local + it_mariadb_data: + driver: local + it_remote_git: + driver: local + it_git_auth: + driver: local + it_git_repos: + driver: local |
