CHORE: Add compose-dev.yml

This commit is contained in:
Michel Pereira 2023-01-24 12:08:17 -03:00
parent bd77435f7d
commit c09686be4b

27
compose-dev.yml Normal file
View file

@ -0,0 +1,27 @@
services:
backend:
build: .
ports:
- 3001:3001 # A porta da direita precisa ser igual a da variável PORT.
depends_on:
- database
environment:
- DB_HOST=database # Se mudar valor dessa variável, tem que mudar o nome do serviço "database" igualmente E VICE-VERSA; remover nem pensar.
- DB_NAME=GamesStore
- PORT=3001
volumes:
- .:/myapp
networks:
- games-store
database:
build: models/
networks:
- games-store
networks:
games-store:
name: games-store