Skip to content

Docker Compose

For a more structured configuration, you can use Docker Compose. This method is particularly suitable if you want to version or extend the configuration.

Docker and Docker Compose must be installed:

Terminal window
# Check Docker version
docker --version
# Check Docker Compose version
docker compose version

Terminal window
sudo mkdir -p /opt/readystackgo
cd /opt/readystackgo

Create a file docker-compose.yml with the following content:

services:
readystackgo:
image: ghcr.io/ams/readystackgo:latest
container_name: readystackgo
restart: unless-stopped
ports:
- "8080:8080"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- readystackgo-data:/data
volumes:
readystackgo-data:
Terminal window
docker compose up -d

You can extend the Compose file as needed:

services:
readystackgo:
image: ghcr.io/ams/readystackgo:latest
container_name: readystackgo
restart: unless-stopped
ports:
- "8080:8080"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- readystackgo-data:/data
environment:
- TZ=Europe/Berlin
deploy:
resources:
limits:
memory: 512M
volumes:
readystackgo-data:

Terminal window
# Start container
docker compose up -d
# Stop container
docker compose down
# View logs
docker compose logs -f
# Restart container
docker compose restart
# Update to latest version
docker compose pull && docker compose up -d

After installation, you can access ReadyStackGo at http://<server-ip>:8080.

➡️ Continue to Initial Setup