gmokercom/compose.yaml
dorian melenotte 8f6d6d68a8
Some checks failed
/ deploy (push) Failing after 4s
ADD: good set up docker
2024-10-10 17:28:29 +02:00

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: