diff --git a/docker-compose-bind-mount-preview/docker-compose.yaml b/docker-compose-bind-mount-preview/docker-compose.yaml new file mode 100644 index 0000000..773a7e6 --- /dev/null +++ b/docker-compose-bind-mount-preview/docker-compose.yaml @@ -0,0 +1,15 @@ +services: + nginx: + image: nginx:alpine + ports: + - "0:80" + volumes: + - ./static:/var/www/static:ro + depends_on: + - web + + web: + image: alpine:latest + command: ["sh", "-c", "echo 'hello' > /var/www/static/index.html && sleep infinity"] + volumes: + - ./static:/var/www/static