misc: update deployment
This commit is contained in:
@@ -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
9
docker-compose.yml
Executable 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
|
||||||
@@ -1 +1 @@
|
|||||||
docker build . -t joshuafhiggins/connect4-moderator-server
|
docker build . -t joshuafhiggins/connect4-server
|
||||||
|
|||||||
@@ -1,6 +0,0 @@
|
|||||||
docker run -d \
|
|
||||||
--env-file ./.env \
|
|
||||||
--name=connect4-moderator-server \
|
|
||||||
--restart unless-stopped \
|
|
||||||
-p 5102:8080 \
|
|
||||||
joshuafhiggins/connect4-moderator-server
|
|
||||||
@@ -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 = (
|
||||||
|
|||||||
Reference in New Issue
Block a user