https://github.com/mathisburger/surrealdb-docker-service
A github action that initializes a surreal db instance
https://github.com/mathisburger/surrealdb-docker-service
containers docker dockerfile gihub-actions services surrealdb
Last synced: about 1 year ago
JSON representation
A github action that initializes a surreal db instance
- Host: GitHub
- URL: https://github.com/mathisburger/surrealdb-docker-service
- Owner: MathisBurger
- License: mit
- Created: 2022-09-25T18:45:08.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-09-26T12:32:22.000Z (over 3 years ago)
- Last Synced: 2025-02-05T04:42:32.023Z (over 1 year ago)
- Topics: containers, docker, dockerfile, gihub-actions, services, surrealdb
- Language: Dockerfile
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SurrealDb docker service
This project is a docker image that wraps the surrealDb base image
into a new one that starts the database automatically with default user
credentials and in memory mode. It can be used for GitHub actions pipelines to
setup a testing environment.
NOTE: This image is only built for the usage with GitHub actions. It is not
tested for other purposes.
# Usage
You can use the docker container as a service in your action pipeline description.
The default credentials are `root` for both username and password.
```yaml
services:
surrealdb:
image: ghcr.io/mathisburger/surrealdb-docker-service:latest
ports:
- 127.0.0.1:8000:8000
```
You can also change log-level and database root credentials with environment variables
```yaml
services:
surrealdb:
image: ghcr.io/mathisburger/surrealdb-docker-service:latest
ports:
- 127.0.0.1:8000:8000
env:
LOG_LEVEL: trace
ROOT_USERNAME: root
ROOT_PASSWORD: root
```
# License
This project is MIT licensed.