This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: '3.8' | |
| services: | |
| web: | |
| image: nginx:alpine | |
| ports: | |
| - "8080:80" | |
| environment: | |
| - NGINX_HOST=localhost | |
| - NGINX_PORT=80 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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] |