misc: update deployment

This commit is contained in:
2026-04-15 17:19:53 -04:00
Unverified
parent b434e29660
commit f6753ae345
5 changed files with 12 additions and 9 deletions

View File

@@ -1,4 +1,4 @@
FROM rust:1.91.1 AS build FROM rust:1.92 AS build
RUN rustup target add x86_64-unknown-linux-musl && \ RUN rustup target add x86_64-unknown-linux-musl && \
apt update && \ apt update && \

9
docker-compose.yml Executable file
View File

@@ -0,0 +1,9 @@
services:
connect4-server:
env_file:
- ./.env
container_name: connect4-server
restart: unless-stopped
ports:
- 5102:8080
image: joshuafhiggins/connect4-server

View File

@@ -1 +1 @@
docker build . -t joshuafhiggins/connect4-moderator-server docker build . -t joshuafhiggins/connect4-server

View File

@@ -1,6 +0,0 @@
docker run -d \
--env-file ./.env \
--name=connect4-moderator-server \
--restart unless-stopped \
-p 5102:8080 \
joshuafhiggins/connect4-moderator-server

View File

@@ -4,7 +4,7 @@ from websockets.exceptions import ConnectionClosed
from wakepy import keep from wakepy import keep
from agent import Agent from agent import Agent
DEFAULT_SERVER_URL = "wss://connect4.abunchofknowitalls.com" DEFAULT_SERVER_URL = "wss://connect4.abunchofknowitalls.com/ws"
RECONNECT_INTERVAL_SECONDS = 5 RECONNECT_INTERVAL_SECONDS = 5
RECONNECT_TIMEOUT_SECONDS = 60 RECONNECT_TIMEOUT_SECONDS = 60
MAX_RECONNECT_ATTEMPTS = ( MAX_RECONNECT_ATTEMPTS = (