Your website or API online,with its database, from Paris.
An Arkya application runs your Docker image behind an HTTPS address. Add a PostgreSQL database in the same project, connect your domain: the certificate sets itself up, and you pay by the minute for what runs.
What you need
Two services in the same project. The third one only helps if your application keeps sessions or a task queue.
- €1.50/monthstopped: €0/month
An application
Your code, whatever the language: Express, Fastify, FastAPI, Django, Laravel, Go. It gets an
arkya.appaddress with HTTPS. - €1.56/monthstopped: €0.06/month
PostgreSQL 16
Your data. Private by default, with a data editor in the client area and adjustable backups.
- €1.56/monthstopped: €0.06/month
Redis 7if needed
Sessions, cache, task queues between your API and a background process.
From your folder to your domain
Five steps, with the ark CLI. The client area does the same with a mouse.
Adapt the image
Your server listens on the
PORTvariable and on0.0.0.0, only writes to/orhome/ container /tmp, and shuts down cleanly onSIGTERM. The table below explains why.Declare the database in the manifest
ark initwritesarkya.json. Add the database underservices, thenark planshows you what will be created and its monthly price, before anything is ordered.arkya.json { "app": "mon-api", "project": "Mon projet", "size": { "cpu": 1, "ram": 1 }, "services": { "db": { "type": "postgres", "name": "mon-api-db", "size": { "cpu": 1, "ram": 1, "disk": 10 } } } }Deploy
ark deployorders the database, builds the image for linux/amd64, pushes it toregistry.arkya.ggand starts the application onhttps:/./ mon-api-<ref>.arkya.app Terminal ark plan ark deploy ark logs mon-api --followConnect the database
In the application's Variables tab, the references
${mon-api-db.HOST}and${mon-api-db.PORT}give the database's private address at startup: you refer to the database by its name. The credentials are copied from the database's Connection tab.Application variables DB_HOST=${mon-api-db.HOST} DB_PORT=${mon-api-db.PORT} DB_USER=… # onglet Connexion de la base DB_PASSWORD=… # secret DB_NAME=…Add your domain
In the Domains tab, add
api.exemple.fr, then create a CNAME record at your registrar pointing to the application'sarkya.appaddress. The Let's Encrypt certificate is issued as soon as the DNS points to us.
The four rules of an image
They come from how applications are isolated. If your image starts with these constraints on your machine, it will start on ours.
| Rule | Why | What you do |
|---|---|---|
Listen on $PORT and 0.0.0.0 | the port is chosen at startup, and 127.0.0.1 doesn't leave the container | app.listen(process.env.PORT, "0.0.0.0") |
Write only to / or /tmp | the rest is read-only; /tmp is limited to 100 MB | set HOME=/ and keep caches in it |
| Run without root, as user 988 | an application can't take control of the machine | copy the files with COPY --chmod=644 |
Exit on SIGTERM | a restart leaves 30 seconds before the forced stop | close the server and the database connection, or start the process with exec |
docker build -t mon-api .
docker run --rm -p 8080:8080 --read-only --user 988:988 \
--tmpfs /tmp:size=100m,uid=988,gid=988 --tmpfs /home/container:uid=988,gid=988 \
-e PORT=8080 mon-apiTwo starting points that work
An Express API with its PostgreSQL connection, and the Dockerfile of a FastAPI API run by uvicorn (fastapi and uvicorn in requirements.txt). The images start from Alpine: the security scan run on every push rejects full Debian images, some of whose packages have unpatched vulnerabilities.
import express from "express";
import pg from "pg";
const db = new pg.Pool({
host: process.env.DB_HOST,
port: Number(process.env.DB_PORT),
user: process.env.DB_USER,
password: process.env.DB_PASSWORD,
database: process.env.DB_NAME,
});
const app = express();
app.get("/sante", async (_req, res) => {
await db.query("select 1");
res.json({ ok: true });
});
const port = Number(process.env.PORT ?? 8080);
const server = app.listen(port, "0.0.0.0", () => console.log(`En écoute sur ${port}`));
process.on("SIGTERM", () => server.close(() => db.end().then(() => process.exit(0))));FROM node:24-alpine
RUN apk upgrade --no-cache
ENV NODE_ENV=production HOME=/home/container NPM_CONFIG_CACHE=/home/container/.npm
WORKDIR /app
COPY --chmod=644 package.json package-lock.json ./
RUN npm ci --omit=dev
COPY --chmod=644 server.js ./
CMD ["node", "server.js"]FROM python:3.13-alpine
RUN apk upgrade --no-cache
ENV HOME=/home/container PYTHONUNBUFFERED=1 PYTHONDONTWRITEBYTECODE=1 PIP_NO_CACHE_DIR=1
WORKDIR /app
COPY --chmod=644 requirements.txt ./
RUN pip install -r requirements.txt
COPY --chmod=644 main.py ./
CMD ["sh", "-c", "exec uvicorn main:app --host 0.0.0.0 --port ${PORT:-8080}"]What an application is not
Better to know before you migrate.
- No disk. Uploaded files, an SQLite database, file-based sessions: everything starts again from the image on redeploy. Data goes into a database in the project, or into external storage.
- GitHub only. Arkya builds from a GitHub repository, on every push. From GitLab or another forge, you push an image: in a CI,
ark deployis enough. - No health check. A process that answers with an error without crashing stays “online”: check your website after every deployment.
- A single architecture, linux/amd64.
ark buildpicks it for you, even from a Mac with Apple silicon.
If you need a disk, a system daemon or root access, take a VPS instead.
What it costs
An API and its database, running all month, at the default size. Stopped, the application pays nothing; the database keeps its disk.
| Service | Running | Stopped |
|---|---|---|
| Application, default size1 vCPU, 1 GB of RAM | €1.50/month | €0/month |
| PostgreSQL 16, default size1 vCPU, 1 GB, 10 GB of disk | €1.56/month | €0.06/month |
| Total | €3.06/month | €0.06/month |
Prices include VAT, for a 720-hour month. Backups beyond the included volume are billed separately: see Pricing.
The questions we get asked
Which languages and frameworks work?
Anything that runs in a linux/amd64 Docker image and answers HTTP on the given port: Node.js, Python, PHP with its built-in server, Go, Rust, Java. Apache, which writes to /var/run, needs to be set up for read-only.
Can my database be reached from the Internet?
No, not by default: only the services in the same project can reach it. To open it to an outside tool, you need to add a paid dedicated IP. The client area's data editor often makes that unnecessary.
Where do the files my users upload go?
Not into the application: it has no disk. Store them in the database if they are small, or in an external object storage service. If your software can only write to disk, a VPS is a better fit.
Is HTTPS included?
Yes. The arkya.app address has its certificate as soon as it goes live. For your own domain, the Let's Encrypt certificate is issued as soon as the CNAME record points to us; keep your DNS provider's proxy turned off.
How do I go back to the previous version?
Every image you push becomes a version of the application. From the client area, you put a previous version back into service without rebuilding.
Where do my services run?
On our machines in Paris, in the Equinix PA5 datacenter. The application and its database are on the same private network, the project's.