feat: dockerfile and docker-compose

This commit is contained in:
GitBluub
2022-06-19 22:39:25 +02:00
parent 8ed33d2fe8
commit 039a53ef34
5 changed files with 58 additions and 1 deletions
+18
View File
@@ -0,0 +1,18 @@
services:
back:
build: ./back
ports:
- "8080:3000"
depends_on:
- "db"
env_file:
- .env
db:
container_name: db
image: postgres:alpine3.14
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_NAME}
ports:
- "5432:5432"