Skip to content
This repository was archived by the owner on Dec 30, 2025. It is now read-only.

Commit 6a7c005

Browse files
committed
feat(gamja): complete the gamja docker setup
1 parent e5bf366 commit 6a7c005

File tree

2 files changed

+30
-2
lines changed

2 files changed

+30
-2
lines changed

docker-compose.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,25 @@ services:
8585
timeout: 10s
8686
retries: 3
8787
start_period: 60s
88+
gamja:
89+
build:
90+
context: .
91+
dockerfile: web/gamja/Dockerfile
92+
container_name: gamja
93+
restart: unless-stopped
94+
ports:
95+
- '8080:80'
96+
environment:
97+
- TZ=UTC
98+
depends_on:
99+
ircd:
100+
condition: service_healthy
101+
healthcheck:
102+
test: ["CMD", "curl", "-f", "http://localhost/gamja/"]
103+
interval: 30s
104+
timeout: 10s
105+
retries: 3
106+
start_period: 60s
88107

89108
volumes:
90109
ircd_data:

web/gamja/Dockerfile

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
1+
# Setup phase
12
FROM node:current-alpine3.22@sha256:51dbfc749ec3018c7d4bf8b9ee65299ff9a908e38918ce163b0acfcd5dd931d9 AS base
23

3-
ENV GAMJA_VERSION="1.0.0-beta.11"
4-
54
LABEL maintainer="AllThingsLinux IRC Infrastructure" \
65
description="UnrealIRCd WebPanel - Web-based administration interface" \
76
version="1.0.0" \
87
org.opencontainers.image.source="https://github.com/allthingslinux/irc.atl.chat"
98

9+
ENV GAMJA_VERSION="1.0.0-beta.11"
10+
ENV GAMJA_PORT=8080
11+
1012
RUN addgroup -S gamja && \
1113
adduser -S -G gamja gamja
1214

15+
# Building phase
1316
FROM base AS builder
1417

1518
RUN mkdir -p /var/www/html && \
@@ -27,6 +30,12 @@ WORKDIR /var/www/html/gamja
2730

2831
RUN npm install --omit=dev
2932

33+
# Development server phase
3034
FROM base AS dev
3135

3236
COPY --from=builder --chown=gamja:gamja /var/www/html/gamja/ /var/www/html/gamja
37+
COPY --chown=gamja:gamja conf/config.json /var/www/html/gamja/config.json
38+
39+
WORKDIR /var/www/html/gamja
40+
41+
EXPOSE GAMJA_PORT

0 commit comments

Comments
 (0)