gmokercom/compose.yaml
ange 529885d9d4
Some checks failed
/ deploy (push) Failing after 4s
FIX: back-end db connection
2024-10-22 22:47:43 +07:00

44 lines
777 B
YAML

---
services:
front-end:
build: ./front_end
restart: unless-stopped
ports:
- "8000:5173"
environment:
- PROD_URL
depends_on:
- back-end
back-end:
build: ./back-end
restart: unless-stopped
ports:
- "3000:3000"
command:
- sh
- -c
- "bunx prisma migrate deploy && bun index.ts"
environment:
- DATABASE_URL=postgresql://$POSTGRES_USER:$POSTGRES_PASSWORD@db/$POSTGRES_DB
depends_on:
- redis
- db
redis:
image: "valkey/valkey:7"
restart: unless-stopped
db:
image: "postgres:17"
restart: unless-stopped
environment:
- POSTGRES_DB
- POSTGRES_USER
- POSTGRES_PASSWORD
volumes:
- db:/var/lib/postgresql/data
volumes:
db: