Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion apps/docs/content/docker/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: Docker Service
desc: Comprehensive guide to using Docker in Zerops with VM-based environments. Includes configuration examples and best practices.
---

import UnorderedList from '@site/src/components/UnorderedList';
import UnorderedCodeList from '@site/src/components/UnorderedCodeList';
import data from '@site/static/data.json';

Expand Down Expand Up @@ -41,7 +42,7 @@ Despite these limitations, Docker services offer some benefits:
### Supported Version

Currently supported Docker versions:
<UnorderedCodeList data={data.docker.import}/>
<UnorderedList data={data.docker.readable}/>

### Basic Structure

Expand All @@ -51,6 +52,7 @@ Docker services in Zerops are configured through the `zerops.yaml` file. Here's
zerops:
- setup: app
run:
base: docker@latest
prepareCommands:
- docker image pull <your-image>:<version> # Always use specific version tags
start: docker run --network=host <your-image>:<version>
Expand Down Expand Up @@ -84,6 +86,7 @@ For projects using Docker Compose, additional configuration is required:
1. **File Deployment**:
```yaml title="zerops.yaml"
build:
# base cannot be docker — build phase runs in containers, not VMs
deployFiles: ./docker-compose.yaml
addToRunPrepare: ./docker-compose.yaml
```
Expand Down Expand Up @@ -114,6 +117,7 @@ Define your environment variables in the `run.envVariables` section of your `zer
zerops:
- setup: app
run:
base: docker@latest
envVariables:
DB_HOST: ${db_hostname}
DB_PORT: ${db_port}
Expand All @@ -125,6 +129,7 @@ For single containers, pass variables using the `-e` flag:

```yaml title="zerops.yaml"
run:
base: docker@latest
prepareCommands:
- docker image pull my-application:1.0.0 # Use specific version tags, not :latest
start: docker run -e DB_HOST -e DB_PORT --network=host my-application:1.0.0
Expand Down Expand Up @@ -154,6 +159,7 @@ services:
zerops:
- setup: app
run:
base: docker@latest
prepareCommands:
- docker image pull crccheck/hello-world:1.0.0 # Always use specific version tags
start: docker run --network=host crccheck/hello-world:1.0.0
Expand All @@ -172,9 +178,11 @@ Always use specific version tags (like `1.0.0`) instead of `:latest`. Zerops cac
zerops:
- setup: api
build:
# base cannot be docker — build phase runs in containers, not VMs
deployFiles: ./docker-compose.yaml
addToRunPrepare: ./docker-compose.yaml
run:
base: docker@latest
prepareCommands:
- docker compose pull api
start: docker compose up api --force-recreate
Expand All @@ -197,9 +205,11 @@ services:
zerops:
- setup: apps
build:
# base cannot be docker — build phase runs in containers, not VMs
deployFiles: ./docker-compose.yaml
addToRunPrepare: ./docker-compose.yaml
run:
base: docker@latest
prepareCommands:
- docker compose pull
start: docker compose up --force-recreate
Expand Down
16 changes: 8 additions & 8 deletions apps/docs/content/help/faq.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ Get quick answers to your related questions about Zerops from frequently asked q
We also have a calculator on our pricing page that can help you estimate the cost of your project.
</FAQItem>
<FAQItem question="Where are your servers located?">
Our infrastructure is hosted in our own high-tier data center in Prague,
Czech Republic, running on bare metal servers managed by vshosting's senior
admin team. The project was originally started in <a href="https://vshosting.eu/"
target="_blank">vshosting.eu</a>, one of the largest providers of managed hosting
in Europe.

We are actively working on expanding to multiple regions to provide better
global coverage - stay tuned for updates on our <a href="https://docs.zerops.io/discord"
Our infrastructure spans multiple regions. In Europe, we operate our own high-tier
data center in **Prague**, Czech Republic, running on bare metal servers managed by
vshosting's senior admin team<a href="https://vshosting.eu/" target="_blank">vshosting.eu</a>,
one of the largest providers of managed hosting in Europe. In the US, we have servers
in **New York**, with additional US East Coast capacity on its way through a trusted
infrastructure partner.

Stay tuned for updates on our <a href="https://docs.zerops.io/discord"
target="_blank">Discord server</a> and checkout our <a href="https://zerops.io/#about"
target="_blank">roadmap</a>!
</FAQItem>
Expand Down
17 changes: 12 additions & 5 deletions apps/docs/content/zerops-yaml/base-list.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -139,19 +139,26 @@ Versions listed on the same line are aliases of the same underlying version.
<th colspan="2" className="w-full">Versions</th>
</tr>
<tr>
<th colspan="2" className="w-full">Build / Runtime</th>
<th className="w-full">Build</th>
<th className="w-full">Runtime</th>
</tr>
</thead>
<tbody>
<tr>
<td className="w-fit">Alpine</td>
<td className="w-fit">`alpine`</td>
<td className="w-fit"><UnorderedCodeList data={data.alpine.base} /></td>
<td className="w-fit">Docker</td>
<td className="w-fit">`alpine`</td>
<td className="w-fit">-</td>
<td className="w-fit"><UnorderedCodeList data={data.docker.base.runtime} /></td>
</tr>
<tr>
<td className="w-fit">Alpine</td>
<td className="w-fit">`alpine`</td>
<td colspan="2" className="w-fit"><UnorderedCodeList data={data.alpine.base} /></td>
</tr>
<tr>
<td className="w-fit">Ubuntu</td>
<td className="w-fit">`ubuntu`</td>
<td className="w-fit"><UnorderedCodeList data={data.ubuntu.base} /></td>
<td colspan="2" className="w-fit"><UnorderedCodeList data={data.ubuntu.base} /></td>
</tr>
</tbody>
</table>
5 changes: 5 additions & 0 deletions apps/docs/static/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,11 @@
"import": [["static","static@1.0", "static@latest"]]
},
"docker": {
"base": {
"runtime": [
["docker@26.1", "docker@latest"]
]
},
"import": [["docker@26.1.5"]],
"readable": ["26.1"]
},
Expand Down
Loading
Loading