mirror of
https://github.com/coollabsio/coolify-examples.git
synced 2026-04-05 20:01:32 +00:00
Create docker-compose.yaml
This commit is contained in:
15
docker-compose-bind-mount-preview/docker-compose.yaml
Normal file
15
docker-compose-bind-mount-preview/docker-compose.yaml
Normal file
@@ -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
|
||||||
Reference in New Issue
Block a user