Compare commits
8 Commits
Author | SHA1 | Date | |
---|---|---|---|
cb89d2c3be | |||
8ac3a2a27a | |||
73fa85b9f1 | |||
5832bb6b3c | |||
18f0f78de0 | |||
8cd87a2741 | |||
2c013eee24 | |||
|
8f47e551b0 |
21
.gitea/workflows/test-self.yaml
Normal file
21
.gitea/workflows/test-self.yaml
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
name: Gitea Actions Demo
|
||||||
|
run-name: ${{ gitea.actor }} is fuware be STG
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [develop]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
check:
|
||||||
|
runs-on: self-hosted
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: /home/raysam/act-runner-host/repo
|
||||||
|
steps:
|
||||||
|
- run: git --version
|
||||||
|
- run: rm -rf fuware-be
|
||||||
|
- run: git clone ssh://git@thamluu.synology.me:222/sam/fuware-be.git fuware-be
|
||||||
|
- name: run docker
|
||||||
|
working-directory: /home/raysam/act-runner-host/repo/fuware-be
|
||||||
|
run: git switch develop && docker compose up --build -d
|
||||||
|
- run: echo "🍏 This job's status is ${{ job.status }}."
|
@ -53,8 +53,7 @@ app = FastAPI(
|
|||||||
|
|
||||||
app.add_middleware(GZipMiddleware, minimum_size=1000)
|
app.add_middleware(GZipMiddleware, minimum_size=1000)
|
||||||
|
|
||||||
if not settings.PRODUCTION:
|
allowed_origins = ["http://localhost:5001", "https://stg.samliu.io.vn"]
|
||||||
allowed_origins = ["http://localhost:3000"]
|
|
||||||
|
|
||||||
app.add_middleware(
|
app.add_middleware(
|
||||||
CORSMiddleware,
|
CORSMiddleware,
|
||||||
|
@ -1,20 +1,18 @@
|
|||||||
services:
|
services:
|
||||||
fuware:
|
fuware:
|
||||||
container_name: fuware
|
container_name: fuware-be
|
||||||
image: fuware:dev
|
image: fuware-be
|
||||||
build:
|
build:
|
||||||
context: ../
|
context: .
|
||||||
target: production
|
dockerfile: Dockerfile
|
||||||
dockerfile: ./docker/Dockerfile
|
|
||||||
restart: always
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
- fuware-data:/app/data/
|
- /home/raysam/act-runner-host/repo/dbdetail:/app/data/
|
||||||
ports:
|
ports:
|
||||||
- 9091:9000
|
- 16002:9000
|
||||||
environment:
|
environment:
|
||||||
ALLOW_SIGNUP: "false"
|
ALLOW_SIGNUP: "false"
|
||||||
LOG_LEVEL: "DEBUG"
|
LOG_LEVEL: "DEBUG"
|
||||||
|
|
||||||
# =====================================
|
# =====================================
|
||||||
# Email Configuration
|
# Email Configuration
|
||||||
# SMTP_HOST=
|
# SMTP_HOST=
|
||||||
@ -24,7 +22,3 @@ services:
|
|||||||
# SMTP_FROM_EMAIL=
|
# SMTP_FROM_EMAIL=
|
||||||
# SMTP_USER=
|
# SMTP_USER=
|
||||||
# SMTP_PASSWORD=
|
# SMTP_PASSWORD=
|
||||||
|
|
||||||
volumes:
|
|
||||||
fuware-data:
|
|
||||||
driver: local
|
|
Loading…
x
Reference in New Issue
Block a user