Docker

If you notice any mistakes that need to be corrected, please reach out on Discord!

We will go over how to install Petio using Dockerarrow-up-right or Docker Composearrow-up-right. We assume you have installed Docker and/or Docker Compose.

triangle-exclamation

Docker CLI

docker run --rm \
    --name petio \
    -p 7777:7777 \
    -e TZ="Etc/UTC" \
    --user 1000:1000 \
    -v /<host_folder_config>:/app/api/config \
    ghcr.io/petio-team/petio
docker run --rm \
    --name mongo \
    -e TZ="Etc/UTC" \
    --user 1000:1000 \
    -v /<host_folder_db>:/data/db \
    mongo:4.4

Docker Compose

There are two ways you can install Petio using Docker Compose. You can either download the docker-compose.yml from the repo and place it in a folder where you will run docker-compose from or you can add it to an existing docker-compose.yml.

To download the Docker Compose file you run the following command:

Below you can find an example for the docker-compose.yml. In this example, petio and mongo are on a custom docker network called petio-network

Once you configure the services, you need to spin up the container using docker-compose up -d.

Once the container is spun up, you can navigate to http://<hostname>:7777 to start configuring Petio.

Last updated