diff --git a/.gitmodules b/.gitmodules index 31f6fa4..76563df 100644 --- a/.gitmodules +++ b/.gitmodules @@ -10,3 +10,6 @@ [submodule "ARC3"] path = ARC3 url = https://github.com/ARCv3/ARC3 +[submodule "unity"] + path = unity + url = https://github.com/ARCv3/unity diff --git a/docker-compose-stg.yml b/docker-compose-stg.yml index 01fb430..fc630a0 100644 --- a/docker-compose-stg.yml +++ b/docker-compose-stg.yml @@ -7,6 +7,8 @@ services: env_file: - .env image: elestio/uptime-kuma:latest + environment: + - PORT=3030 restart: always healthcheck: disable: true @@ -89,6 +91,21 @@ services: networks: - common-net-stg + unity-stg: + environment: + - PORT=3000 + depends_on: + - arc-api-stg + image: unity + build: + dockerfile: unity.Dockerfile + container_name: unity-stg + restart: on-failure + ports: + - 3050:3000 + networks: + - common-net-stg + arc-tasks-stg: env_file: - .env diff --git a/unity b/unity new file mode 160000 index 0000000..c48eb8f --- /dev/null +++ b/unity @@ -0,0 +1 @@ +Subproject commit c48eb8fbbd2583f5f0ad5159ac4a2c31df6e713b diff --git a/unity.Dockerfile b/unity.Dockerfile new file mode 100644 index 0000000..5197687 --- /dev/null +++ b/unity.Dockerfile @@ -0,0 +1,13 @@ +FROM node + +RUN apt-get update && apt-get install -y npm +WORKDIR /app + +COPY ./unity/package*.json . +RUN node --max-old-space-size=1000 $(which npm) ci + +COPY ./unity/ . +RUN node --max-old-space-size=1000 $(which npm) run build + +ENTRYPOINT [ "npm", "run", "start" ] +