refactor: consolidate frontend serving and add health check
Backend / Lint i formatowanie (pull_request) Successful in 4s
Panel / Lint, typy i build (pull_request) Successful in 4m50s
Panel / Testowy build obrazu (pull_request) Failing after 2s
Backend / Testy i kontrakt API (pull_request) Successful in 9m24s
Backend / Testowy build obrazu (pull_request) Successful in 1m38s
Backend / Lint i formatowanie (pull_request) Successful in 4s
Panel / Lint, typy i build (pull_request) Successful in 4m50s
Panel / Testowy build obrazu (pull_request) Failing after 2s
Backend / Testy i kontrakt API (pull_request) Successful in 9m24s
Backend / Testowy build obrazu (pull_request) Successful in 1m38s
This commit is contained in:
13 files changed
+42
-121
No files matched your search
+3
-25
@@ -1,10 +1,10 @@
|
||||
services:
|
||||
# Bot Discorda wraz z API sterującym. Nie serwuje żadnych plików panelu.
|
||||
# Bot Discorda wraz z API i panelem webowym serwowanym przez FastAPI.
|
||||
discord-bot:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
container_name: zyrarbot-api
|
||||
container_name: zyrarbot
|
||||
environment:
|
||||
- DISCORD_TOKEN=${DISCORD_TOKEN}
|
||||
- GUILD_ID=${GUILD_ID:-}
|
||||
@@ -12,28 +12,6 @@ services:
|
||||
volumes:
|
||||
- ./config:/app/config
|
||||
- ./uploads:/app/uploads
|
||||
# Port wystawiony do debugowania API; panel łączy się siecią wewnętrzną.
|
||||
ports:
|
||||
- "8000:8000"
|
||||
networks:
|
||||
- zyrarbot
|
||||
- "80:8000"
|
||||
restart: unless-stopped
|
||||
|
||||
# Panel webowy: statyczny build Vue serwowany przez nginx, który przekazuje
|
||||
# /api i /ws do kontenera bota - dzięki temu przeglądarka widzi jedno źródło.
|
||||
panel:
|
||||
build:
|
||||
context: ./frontend
|
||||
dockerfile: Dockerfile
|
||||
container_name: zyrarbot-panel
|
||||
ports:
|
||||
- "80:80"
|
||||
depends_on:
|
||||
- discord-bot
|
||||
networks:
|
||||
- zyrarbot
|
||||
restart: unless-stopped
|
||||
|
||||
networks:
|
||||
zyrarbot:
|
||||
driver: bridge
|
||||
Reference in new issue
Block a user