# Establishing a Temporary Test Environment in 10 Minutes with Docker on Hourly VDS

https://vatanhosting.com/en/knowledgebase/article/saatlik-vds-docker-test-ortami

Trying a pull request, new release, or customer demo **on a live-like Linux server** rather than your own computer catches errors early. The test environment with Docker on a one-hour VDS with Ubuntu is set up in about **10 minutes** ; One working day (8 hours) for a package with 2 vCPU / 4 GB RAM costs approximately **2.7 ₺** including VAT.

*Updated: November 19, 2026 · Prices exclude VAT, are deducted from the wallet including VAT.*

## 1. Turn on the server

Select FLEX-XEON-2 (2 vCPU · 4 GB) from [the Hourly Intel VDS](https://vatanhosting.com/saatlik-intel-vds) page or FLEX-XEON-4 (4 vCPU · 8 GB) for database-intensive projects, install Ubuntu 22.04/24.04 as the operating system. Access information appears in your customer panel.

## 2. Basic security

```
 ssh root@SUNUCU_IP apt update && apt -y upgrade adduser deploy && usermod -aG sudo deploy ufw allow OpenSSH && ufw allow 80,443/tcp && ufw --force enable
```

If possible, log in with an SSH key instead of a password.

## 3. Docker installation

```
 curl -fsSL https://get.docker.com | sh usermod -aG docker deploy docker version && docker compose version
```

## 4. Stand up the project

Example: `compose.yaml` with a web application, PostgreSQL and Redis:

```
 services: app: image: ghcr.io/kullanici/proje: pr-123 ports: ["80:3000"] env_file: .env.staging depends_on: [db, cache] db: image: postgres:16 environment: POSTGRES_PASSWORD: degistir volumes: [pgdata:/var/lib/postgresql/data] cache: image: redis:7 volumes: pgdata:
```

```
 docker compose up -d docker compose logs -f app
```

Test the application by going to `http://SUNUCU_IP` from the browser. If you need a domain name and SSL, you can put Caddy or Nginx Proxy Manager in front of it.

## 5. When you're done

- Download the necessary logs and database dump: `docker compose exec db pg_dump -U postgres > dump.sql`
- Cancel the service from the customer panel; hourly wage stops.

## Which package for which stack?

| Stack | Recommended package | 8 hours (including VAT) |
| --- | --- | --- |
| Single container (Node, PHP, Python) | FLEX-XEON-1 2 GB | ≈ 1.9₺ |
| Application + PostgreSQL/ MySQL + Redis | FLEX-XEON-2 4 GB | ≈ 2.7₺ |
| Microservice, Elasticsearch, n8n + DB | FLEX-XEON-4 8 GB | ≈ 4₺ |
| CI build, load testing agent | FLEX-XEON-6 /8 12– 16 GB | ≈ 5.6–7.5₺ |

> **Classified information**
> 
> Do not use real customer data and production API keys in the test environment. Use separate keys and anonymized data for staging.

> **Your test environment is 10 minutes away**
> 
> Hourly VDS with root access and NVMe disk. [**See hourly VDS packages**](https://vatanhosting.com/saatlik-intel-vds)

## Frequently Asked Questions

### How many GB RAM is required for a Docker testing environment?

2 GB is recommended for a single-container application, and at least 4 GB RAM is recommended if you will be running PostgreSQL or MySQL and Redis with the application. For memory-hungry services like Elasticsearch, start with 8 GB.

### Does Docker run on Hourly VDS?

Yes. Hourly VDS come with KVM virtualization and full root access; Docker and Docker Compose run smoothly.

### How much does a temporary test server cost?

An 8-hour working day in an hourly package with 2 vCPU and 4 GB RAM costs approximately 2.7 ₺ including VAT. The fee is charged only for the hours the service remains active.
