mirror of
https://github.com/JefferyHcool/BiliNote.git
synced 2026-05-07 08:03:09 +08:00
29 lines
558 B
YAML
29 lines
558 B
YAML
|
|
services:
|
|
backend:
|
|
container_name: bilinote-backend
|
|
build:
|
|
context: .
|
|
dockerfile: backend/Dockerfile
|
|
env_file:
|
|
- .env
|
|
environment:
|
|
- BACKEND_PORT=${BACKEND_PORT}
|
|
- BACKEND_HOST=${BACKEND_HOST}
|
|
volumes:
|
|
- ./backend:/app
|
|
ports:
|
|
- "${BACKEND_PORT}:${BACKEND_PORT}"
|
|
depends_on:
|
|
- frontend
|
|
|
|
frontend:
|
|
container_name: bilinote-frontend
|
|
build:
|
|
context: .
|
|
dockerfile: BillNote_frontend/Dockerfile
|
|
env_file:
|
|
- .env
|
|
ports:
|
|
- "${FRONTEND_PORT}:80"
|