mirror of
https://github.com/JefferyHcool/BiliNote.git
synced 2026-06-11 02:30:04 +08:00
first commit
This commit is contained in:
28
docker-compose.yml
Normal file
28
docker-compose.yml
Normal file
@@ -0,0 +1,28 @@
|
||||
|
||||
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"
|
||||
Reference in New Issue
Block a user