... | @@ -9,7 +9,16 @@ |
... | @@ -9,7 +9,16 @@ |
|
```
|
|
```
|
|
docker run --name demo_omop -e POSTGRES_PASSWORD=lollypop -e POSTGRES_USER=postgres -p 5432:5432 -v ${PWD}/postgres:/var/lib/postgresql/data -v ${PWD}/backup:/backup -d postgres
|
|
docker run --name demo_omop -e POSTGRES_PASSWORD=lollypop -e POSTGRES_USER=postgres -p 5432:5432 -v ${PWD}/postgres:/var/lib/postgresql/data -v ${PWD}/backup:/backup -d postgres
|
|
|
|
|
|
psql -U postgres -h localhost -p 5432 -c "CREATE DATABASE demo_omop;"
|
|
```
|
|
|
|
- Create the database
|
|
|
|
|
|
|
|
```
|
|
|
|
docker exec -it demo_omop bash
|
|
|
|
psql -U postgres -h localhost
|
|
|
|
# CREATE DATABASE demo_omop;
|
|
|
|
# \c demo_omop
|
|
|
|
# CREATE SCHEMA raw;
|
|
|
|
# CREATE SCHEMA cdm;
|
|
```
|
|
```
|
|
|
|
|
|
## OMOP-CDM vocabularies
|
|
## OMOP-CDM vocabularies
|
... | | ... | |