Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jabez007/atlas-docker-database

building a testing database that runs inside a Docker container using Atlas
https://github.com/jabez007/atlas-docker-database

atlas docker dockerfile postgres postgresql

Last synced: 30 days ago
JSON representation

building a testing database that runs inside a Docker container using Atlas

Awesome Lists containing this project

README

        

# atlas-docker-database

## Build

`docker build -t atlas-docker-database ./sql/postgres`

## Run

`docker run -d --env-file .env.postgres -p 5432:5432 -t ghcr.io/jabez007/atlas-docker-database:postgres`

## Generate Migration

```bash
atlas migrate diff --dir "file://sql/postgres/swapi/migrations" --to "file://sql/postgres/swapi/schema" --dev-url "docker+postgres://ghcr.io/jabez007/atlas-docker-database:postgres/swapi?search_path=public"
```