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.
Prerequisite
Section titled “Prerequisite”Docker and Docker Compose must be installed:
# Check Docker versiondocker --version
# Check Docker Compose versiondocker compose versionInstallation
Section titled “Installation”Step 1: Create Directory
Section titled “Step 1: Create Directory”sudo mkdir -p /opt/readystackgocd /opt/readystackgoStep 2: Create docker-compose.yml
Section titled “Step 2: Create docker-compose.yml”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:Step 3: Start Container
Section titled “Step 3: Start Container”docker compose up -dExtended Configuration
Section titled “Extended Configuration”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:Container Management
Section titled “Container Management”# Start containerdocker compose up -d
# Stop containerdocker compose down
# View logsdocker compose logs -f
# Restart containerdocker compose restart
# Update to latest versiondocker compose pull && docker compose up -dNext Steps
Section titled “Next Steps”After installation, you can access ReadyStackGo at http://<server-ip>:8080.
➡️ Continue to Initial Setup