mirror of
https://github.com/coollabsio/coolify-examples.git
synced 2026-02-18 21:38:58 +00:00
Create docker-compose-shared-volume.yaml
This commit is contained in:
20
docker-compose-test/docker-compose-shared-volume.yaml
Normal file
20
docker-compose-test/docker-compose-shared-volume.yaml
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
services:
|
||||||
|
web:
|
||||||
|
container_name: web
|
||||||
|
image: nginx
|
||||||
|
restart: unless-stopped
|
||||||
|
volumes:
|
||||||
|
- 'static-data:/var/www/html:ro'
|
||||||
|
expose:
|
||||||
|
- '80'
|
||||||
|
- '443'
|
||||||
|
depends_on:
|
||||||
|
- app
|
||||||
|
app:
|
||||||
|
container_name: app
|
||||||
|
image: nginx
|
||||||
|
restart: unless-stopped
|
||||||
|
working_dir: /var/www/html
|
||||||
|
volumes:
|
||||||
|
- 'static-data:/var/www/html'
|
||||||
|
|
||||||
Reference in New Issue
Block a user