elao
Active Member
- Joined
- Mar 21, 2025
- Messages
- 31
- Reaction score
- 36
I've been trying to run this on Docker.
Any contribution/improvement is welcome.
This is the Dockerfile I created to run the query manager on a container:
First I created a network on Docker:
Then build command:
And run comand:

As described on the
And this is where I am with the login server:
You'll need to update
Then build command:
And run comand:

Now when I try to login using


I'm still finding my way to run the game server.
As I said, any help is welcome
Any contribution/improvement is welcome.
This is the Dockerfile I created to run the query manager on a container:
Code:
# Multi-stage Dockerfile for Tibia Query Manager
# Builder stage
FROM debian:bookworm-slim AS build
RUN apt-get update \
&& apt-get install -y --no-install-recommends build-essential make \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /src
COPY . .
RUN make -j"$(nproc)"
# Runtime stage
FROM debian:bookworm-slim AS runtime
RUN apt-get update \
&& apt-get install -y --no-install-recommends sqlite3 \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Copy binary and runtime assets
COPY --from=build /src/build/querymanager /app/querymanager
COPY config.cfg /app/config.cfg
COPY sql /app/sql
EXPOSE 7173
# Config file is read from current working directory
CMD ["./querymanager"]
First I created a network on Docker:
docker network create tibia-netThen build command:
docker build -t tibia-querymanager .And run comand:
docker run -d --name tibia-querymanager --network tibia-net -p 7173:7173 -v tibiaqm-data:/app tibia-querymanager
As described on the
init.sql file, if you want to run the initial seed script, on the container terminal you just run: sqlite3 -echo tibia.db < sql/init.sqlAnd this is where I am with the login server:
Code:
# syntax=docker/dockerfile:1
# Tibia 7.7 Login Server - Containerized
ARG DEBIAN_FRONTEND=noninteractive
FROM debian:bookworm AS builder
RUN apt-get update && \
apt-get install -y --no-install-recommends \
build-essential make ca-certificates pkg-config libssl-dev && \
rm -rf /var/lib/apt/lists/*
WORKDIR /src
COPY . .
# Build the project (release by default)
RUN make
# Runtime image
FROM debian:bookworm-slim
RUN apt-get update && \
apt-get install -y --no-install-recommends libssl3 ca-certificates && \
rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Copy runtime artifacts
COPY --from=builder /src/build/login /app/login
COPY config.cfg tibia.pem /app/
# Expose the login port
EXPOSE 7171/tcp
ENTRYPOINT ["./login"]
You'll need to update
config.cfg, so that QueryManagerHost = "tibia-querymanager"Then build command:
docker build -t tibia-login .And run comand:
docker run -d --name tibia-login --network tibia-net -p 7171:7171 tibia-login
Now when I try to login using
111111/tibia:

I'm still finding my way to run the game server.
As I said, any help is welcome
