Skip to content

Instantly share code, notes, and snippets.

version: '3.8'
services:
web:
image: nginx:alpine
ports:
- "8080:80"
environment:
- NGINX_HOST=localhost
- NGINX_PORT=80
@koi-tattoo
koi-tattoo / apple-container-compose.py
Created June 11, 2025 12:05
LLM Generated script to use docker-compose.yml files with apple containers.
#!/usr/bin/env python3
"""
Apple Container Compose
A script that mimics docker-compose but uses Apple's Container tool.
This script parses docker-compose.yml files and generates equivalent
Apple Container commands to build and run services.
Usage:
python apple-container-compose.py up [--compose-file docker-compose.yml]