This commit is contained in:
@@ -0,0 +1,18 @@
|
|||||||
|
name: Deploy PROD
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [main]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: prod
|
||||||
|
steps:
|
||||||
|
- name: Deploy Akademia on production host
|
||||||
|
run: |
|
||||||
|
set +e
|
||||||
|
/opt/akademia/deploy-prod.sh
|
||||||
|
rc=$?
|
||||||
|
echo "----- /opt/akademia/deploy.log (tail) -----"
|
||||||
|
tail -n 30 /opt/akademia/deploy.log
|
||||||
|
exit $rc
|
||||||
@@ -22,7 +22,6 @@
|
|||||||
services:
|
services:
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:16
|
image: postgres:16
|
||||||
container_name: webinar-postgres
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_DB: ${DB_NAME}
|
POSTGRES_DB: ${DB_NAME}
|
||||||
@@ -44,7 +43,6 @@ services:
|
|||||||
|
|
||||||
minio:
|
minio:
|
||||||
image: minio/minio:RELEASE.2024-12-18T13-15-44Z
|
image: minio/minio:RELEASE.2024-12-18T13-15-44Z
|
||||||
container_name: webinar-minio
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
command: server /data --console-address ":9001"
|
command: server /data --console-address ":9001"
|
||||||
environment:
|
environment:
|
||||||
@@ -70,7 +68,6 @@ services:
|
|||||||
build:
|
build:
|
||||||
context: ./backend
|
context: ./backend
|
||||||
image: webinar-backend:${APP_VERSION:-latest}
|
image: webinar-backend:${APP_VERSION:-latest}
|
||||||
container_name: webinar-backend
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
depends_on:
|
depends_on:
|
||||||
postgres:
|
postgres:
|
||||||
@@ -123,7 +120,6 @@ services:
|
|||||||
build:
|
build:
|
||||||
context: ./frontend
|
context: ./frontend
|
||||||
image: webinar-frontend:${APP_VERSION:-latest}
|
image: webinar-frontend:${APP_VERSION:-latest}
|
||||||
container_name: webinar-frontend
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
depends_on:
|
depends_on:
|
||||||
backend:
|
backend:
|
||||||
@@ -158,7 +154,6 @@ services:
|
|||||||
# laczy sie sciezka `/rtc/v1`, ktorej serwer 1.8 nie zna: sala wyglada na
|
# laczy sie sciezka `/rtc/v1`, ktorej serwer 1.8 nie zna: sala wyglada na
|
||||||
# dzialajaca, ale nie plynie ani obraz, ani dzwiek.
|
# dzialajaca, ale nie plynie ani obraz, ani dzwiek.
|
||||||
image: livekit/livekit-server:v1.13
|
image: livekit/livekit-server:v1.13
|
||||||
container_name: webinar-livekit
|
|
||||||
profiles: ["livekit"]
|
profiles: ["livekit"]
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
command: --config /etc/livekit.yaml
|
command: --config /etc/livekit.yaml
|
||||||
@@ -194,7 +189,6 @@ services:
|
|||||||
# timeoutem przy poprawnie dzialajacym serwerze i dzialajacych spotkaniach.
|
# timeoutem przy poprawnie dzialajacym serwerze i dzialajacych spotkaniach.
|
||||||
redis:
|
redis:
|
||||||
image: redis:7-alpine
|
image: redis:7-alpine
|
||||||
container_name: webinar-redis
|
|
||||||
profiles: ["livekit"]
|
profiles: ["livekit"]
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
command: redis-server --save "" --appendonly no
|
command: redis-server --save "" --appendonly no
|
||||||
@@ -218,7 +212,6 @@ services:
|
|||||||
# Wersja przypieta, nie `latest`: obraz Egress zmienia sie czesto,
|
# Wersja przypieta, nie `latest`: obraz Egress zmienia sie czesto,
|
||||||
# a niezgodnosc z serwerem ujawnia sie dopiero przy probie nagrania.
|
# a niezgodnosc z serwerem ujawnia sie dopiero przy probie nagrania.
|
||||||
image: livekit/egress:v1.9
|
image: livekit/egress:v1.9
|
||||||
container_name: webinar-livekit-egress
|
|
||||||
profiles: ["livekit"]
|
profiles: ["livekit"]
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
depends_on:
|
depends_on:
|
||||||
@@ -255,7 +248,6 @@ services:
|
|||||||
# czesc osob dolaczy do pokoju i nie zobaczy ani nie uslyszy nikogo.
|
# czesc osob dolaczy do pokoju i nie zobaczy ani nie uslyszy nikogo.
|
||||||
coturn:
|
coturn:
|
||||||
image: coturn/coturn:4.6
|
image: coturn/coturn:4.6
|
||||||
container_name: webinar-coturn
|
|
||||||
profiles: ["livekit"]
|
profiles: ["livekit"]
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
# network_mode: host, bo TURN musi widziec prawdziwe adresy IP: za NAT-em
|
# network_mode: host, bo TURN musi widziec prawdziwe adresy IP: za NAT-em
|
||||||
|
|||||||
Regular → Executable
Reference in New Issue
Block a user