47 lines
822 B
YAML
47 lines
822 B
YAML
---
|
|
services:
|
|
front-end:
|
|
build: ./front_end
|
|
restart: unless-stopped
|
|
ports:
|
|
- "8000:5173"
|
|
environment:
|
|
- PROD_URL=${PROD_URL}
|
|
depends_on:
|
|
- back-end
|
|
|
|
back-end:
|
|
build: ./back-end
|
|
restart: unless-stopped
|
|
ports:
|
|
- "3000:3000"
|
|
command:
|
|
- sh
|
|
- -c
|
|
- "bunx prisma migrate deploy && bunx prisma generate && bun index.js"
|
|
environment:
|
|
- POSTGRES_DB
|
|
- POSTGRES_USER
|
|
- POSTGRES_PASSWORD
|
|
- POSTGRES_HOST=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:
|