diff --git a/Dockerfile b/Dockerfile index 5ca4aff..3d85542 100644 --- a/Dockerfile +++ b/Dockerfile @@ -71,7 +71,11 @@ COPY --from=builder --chown=nobody:root /app/priv /app/priv USER nobody +# EPMD (elixir cluster) +EXPOSE 4369 +# API EXPOSE 8080 +# CheSSH! EXPOSE 34355 CMD /app/bin/chessh eval "Chessh.Release.migrate" && /app/bin/chessh start diff --git a/buildscripts/build/build_server.sh b/buildscripts/build/build_server.sh index 0870c79..80e6e91 100755 --- a/buildscripts/build/build_server.sh +++ b/buildscripts/build/build_server.sh @@ -36,5 +36,6 @@ sudo docker build . -t chessh/server cd $HOME sudo mv chessh.service /etc/systemd/system/chessh.service sudo systemctl daemon-reload -sudo systemctl enable --now chessh -sudo systemctl restart chessh +sudo systemctl enable chessh +sudo systemctl stop chessh +sudo systemctl start chessh diff --git a/buildscripts/docker/build.sh b/buildscripts/docker/build.sh index 9852f20..a33be21 100755 --- a/buildscripts/docker/build.sh +++ b/buildscripts/docker/build.sh @@ -6,9 +6,8 @@ export $(cat $env_file | xargs) docker build ../.. -t chessh/server -cd front docker build \ --build-arg REACT_APP_DISCORD_OAUTH=${REACT_APP_DISCORD_OAUTH} \ --build-arg REACT_APP_SSH_SERVER=${REACT_APP_SSH_SERVER} \ --build-arg REACT_APP_SSH_PORT=${REACT_APP_SSH_PORT} \ - . -t chessh/frontend + ../../front -t chessh/frontend