sha256:240592388133e2d8e38869fadc86dce561efd2ac3b8163545485a9a172ffcafa
Last pushed
about 1 year by michaelirwin244
Type
Compose
Manifest digest
sha256:240592388133e2d8e38869fadc86dce561efd2ac3b8163545485a9a172ffcafa
services:
project-setup:
image: michaelirwin244/workshop-poc:setup
volumes:
- project:/project
environment:
PROJECT_CLONE_URL: https://github.com/mikesir87/catalog-service-node
SETUP_SCRIPT: /project/demo/sdlc-e2e-workshop/setup.sh
workspace:
image: michaelirwin244/workshop-poc:workspace
command: /home/coder/project
depends_on:
project-setup:
condition: service_completed_successfully
ports:
- 8085:8085 # For the IDE itself
- 3000:3000 # For the application running in the IDE
environment:
TESTCONTAINERS_HOST_OVERRIDE: localhost
volumes:
- socket-proxy:/var/run
- project:/home/coder/project
host-forwarding:
image: michaelirwin244/workshop-poc:host-forwarding
volumes:
- socket-proxy:/var/run
network_mode: service:workspace
environment:
LABEL_FILTER: demo-setup=true
depends_on:
- workspace
- socket-proxy
workspace-cleaner:
image: michaelirwin244/workshop-poc:workspace-cleaner
volumes:
- socket-proxy:/var/run
environment:
LABEL_FILTER: demo-setup=true
depends_on:
- socket-proxy
socket-proxy:
image: mikesir87/docker-socket-proxy
use_api_socket: true
volumes:
- socket-proxy:/tmp/proxy
environment:
DEBUG_LOGS: "true"
CONFIG_DATA: |
mutators:
# Remap the project directory to the project volume, since the project
# is running out of a volume.
- type: mountPath
from: /home/coder/project
to: project
# If requests to use the Docker Socket are used (such as Testcontainers),
# use the proxied one to ensure permissions, remappings, etc. are applied
- type: mountPath
from: /var/run/docker.sock
to: socket-proxy/docker.sock
# Add labels to all newly created objects
- type: addLabels
labels:
demo-setup: "true"
- type: addToNetwork
networks:
- workshop-poc
gates:
- type: mountSource
allowedSources:
- project
- socket-proxy
- buildx_buildkit_default_state
responseFilters:
# Only return objects with the labels we mutated on
- type: labelFilter
requiredLabels:
demo-setup: "true"
LISTEN_SOCKET_PATH: /tmp/proxy/docker.sock
volumes:
socket-proxy:
name: socket-proxy
project:
name: project
networks:
default:
name: workshop-pocdocker compose -f oci://michaelirwin244/durdy-demo-poc:latest upUse the above command to pull and run the Compose file. Learn more.