diff --git a/compose.yml b/compose.yml index 657a334..4d74047 100644 --- a/compose.yml +++ b/compose.yml @@ -3,4 +3,16 @@ services: build: ./nestjs/backend ports: - 3000:3000 - restart: unless-stopped \ No newline at end of file + restart: unless-stopped + postgres: + image: postgres:latest + container_name: postgres_container + restart: always + environment: + POSTGRES_USER: nichtar + POSTGRES_PASSWORD: 1234 + POSTGRES_DB: todo + ports: + - "5432:5432" + volumes: + - postgres_data:/var/lib/postgresql/data \ No newline at end of file