Skip to content

Commit

Permalink
add postgres database
Browse files Browse the repository at this point in the history
  • Loading branch information
n1nj4t4nuk1 committed Dec 5, 2024
1 parent e98a613 commit 461b22b
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
11 changes: 11 additions & 0 deletions apps/cti/migrations/reset.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
CREATE SCHEMA cti;

DROP TABLE IF EXISTS cti.cves;
CREATE TABLE IF NOT EXISTS cti.cves (
id text PRIMARY KEY,
state text NOT NULL,
date_published text NOT null,
description text NOT NULL,

_created_at timestamp with time zone DEFAULT now()
);
20 changes: 20 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@

services:

postgres:
image: 'postgres:latest'
container_name: postgres
ports:
- 5432:5432
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: root
volumes:
- ./.data/docker/postgres/data:/var/lib/postgresql/data/
networks:
- postgres-net

networks:
postgres-net:
proxy-net:

0 comments on commit 461b22b

Please sign in to comment.