44 lines
777 B
YAML
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:
|