33 lines
581 B
YAML
33 lines
581 B
YAML
services:
|
|
backend:
|
|
build:
|
|
context: ./backend
|
|
dockerfile: Dockerfile
|
|
container_name: bit-backend
|
|
ports:
|
|
- "8002:8002"
|
|
volumes:
|
|
- ./backend/app:/app/app
|
|
- bit-db:/app
|
|
env_file:
|
|
- ./backend/.env
|
|
environment:
|
|
- PYTHONUNBUFFERED=1
|
|
restart: unless-stopped
|
|
|
|
frontend:
|
|
build:
|
|
context: ./frontend
|
|
dockerfile: Dockerfile
|
|
container_name: bit-frontend
|
|
ports:
|
|
- "3002:80"
|
|
env_file:
|
|
- ./frontend/.env
|
|
depends_on:
|
|
- backend
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
bit-db:
|