Adicionar compose.yml

This commit is contained in:
2026-08-19 19:14:48 -03:00
parent cd91f8f6c9
commit 64721b7ebf
+33
View File
@@ -0,0 +1,33 @@
services:
app:
build: ./app
container_name: app
ports:
- "5000:5000"
env_file:
- .env
volumes:
- ./app:/app
depends_on:
- db
web:
build: ./web
container_name: web
ports:
- "3000:3000"
volumes:
- ./web:/app
db:
image: postgres:15
container_name: db
restart: always
environment:
POSTGRES_USER: $DB_USER
POSTGRES_PASSWORD: $DB_PASSWORD
POSTGRES_DB: $DB_DBNAME
volumes:
- ./db:/var/lib/postgresql/data