diff options
| author | Joel Klinghed <the_jk@spawned.biz> | 2025-01-04 00:13:34 +0100 |
|---|---|---|
| committer | Joel Klinghed <the_jk@spawned.biz> | 2025-01-04 02:30:27 +0100 |
| commit | d09ffb6ee8b872c69321b3a9d992f278224741dc (patch) | |
| tree | cf8e53475b3307264ccf073af37bf01d44926b74 /docker | |
| parent | 6354a463401d529c0a1d02264d1fa8ff4e251af5 (diff) | |
Add docker compose for development
As both compiling, tests and well, running, needs mariadb setup
add a docker image for it. Also prepare for ldap support by adding
a openldap image as well.
Included .env as well, used by sqlx when compiling query!.
Diffstat (limited to 'docker')
| -rw-r--r-- | docker/dev/docker-compose.yaml | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/docker/dev/docker-compose.yaml b/docker/dev/docker-compose.yaml new file mode 100644 index 0000000..dc8cf74 --- /dev/null +++ b/docker/dev/docker-compose.yaml @@ -0,0 +1,30 @@ +services: + openldap: + image: bitnami/openldap:latest + ports: + - '1389:1389' + - '1636:1636' + environment: + - LDAP_ADMIN_USERNAME=admin + - LDAP_ADMIN_PASSWORD=adminpassword + - LDAP_USERS=user01,user02 + - LDAP_PASSWORDS=password1,password2 + volumes: + - 'openldap_data:/bitnami/openldap' + mariadb: + image: mariadb:latest + ports: + - '3306:3306' + environment: + - MARIADB_USER=eyeballs + - MARIADB_PASSWORD=secret + - MARIADB_DATABASE=eyeballs + - MARIADB_ROOT_PASSWORD=verysecret + volumes: + - 'mariadb_data:/var/lib/mysql' + +volumes: + openldap_data: + driver: local + mariadb_data: + driver: local |
