Files
ceamac 9f7af0e45a Add a skeleton test-compose.yaml for docker-compose parsing work
Two busybox services (a worker echoing a fixed reply, a server that relays
it) exercising the compose fields we intend to support: services/image/
command, container_name, environment/env_file, depends_on (condition only),
stop_grace_period, networks (internal/external), ports, and bind + named
volumes.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Gv3s5jckJKzh6JkMoi2Akz
2026-09-07 08:58:46 +00:00

46 lines
934 B
YAML

services:
test-worker:
image: busybox:latest
container_name: test-worker1
command: ["sh", "/scripts/listen.sh"]
environment:
- WORKER_GREETING=Hello from environment
env_file:
- ./worker/worker.env
networks:
- test-intern-net
volumes:
- ./worker:/scripts:ro
test-server:
image: busybox:latest
command: ["sh", "/scripts/listen.sh"]
depends_on:
test-worker:
condition: service_started
environment:
- SERVER_ROLE=proxy
env_file:
- ./server/server.env
stop_grace_period: 20s
networks:
- test-intern-net
- test-extern-net
- test-preexisting-net
ports:
- "18080:80"
volumes:
- ./server:/scripts:ro
- test-server-log:/var/log
networks:
test-intern-net:
internal: true
test-extern-net:
internal: false
test-preexisting-net:
external: true
volumes:
test-server-log: