mirror of
https://github.com/apricote/Listory.git
synced 2026-01-13 21:21:02 +00:00
feat(api): setup nestjs
This commit is contained in:
commit
db62d5d908
25 changed files with 10115 additions and 0 deletions
31
docker-compose.yml
Normal file
31
docker-compose.yml
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
version: "3.4"
|
||||
|
||||
services:
|
||||
db:
|
||||
image: postgres:12.1
|
||||
environment:
|
||||
POSTGRES_PASSWORD: listory
|
||||
POSTGRES_USER: listory
|
||||
POSTGRES_DB: listory
|
||||
networks:
|
||||
- listory
|
||||
|
||||
service:
|
||||
build:
|
||||
context: .
|
||||
target: builder
|
||||
command: ["npm", "run", "start:dev"]
|
||||
environment:
|
||||
DB_USERNAME: listory
|
||||
DB_PASSWORD: listory
|
||||
DB_HOST: db
|
||||
env_file: .env
|
||||
volumes:
|
||||
- ./src:/app/src
|
||||
ports:
|
||||
- 3000:3000
|
||||
networks:
|
||||
- listory
|
||||
|
||||
networks:
|
||||
listory: {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue