Add Docker Compose for debugging
This commit is contained in:
parent
aa88052b5a
commit
d86126bf70
14
README.md
14
README.md
@ -51,7 +51,7 @@ Below is an example docker-compose.yml file.
|
|||||||
version: '3'
|
version: '3'
|
||||||
services:
|
services:
|
||||||
webdav:
|
webdav:
|
||||||
container_name: webdav
|
container_name: docker-webdav-nginx
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
- WEBDAV_USER=user
|
- WEBDAV_USER=user
|
||||||
@ -72,4 +72,16 @@ volumes:
|
|||||||
driver: local
|
driver: local
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Below is an example of running locally (used to edit/test/debug).
|
||||||
|
```
|
||||||
|
# Build the Dockerfile
|
||||||
|
docker compose -f docker-compose-dev.yml up -d
|
||||||
|
|
||||||
|
# View logs
|
||||||
|
docker compose -f docker-compose-dev.yml logs -f
|
||||||
|
|
||||||
|
# Destroy when done
|
||||||
|
docker compose -f docker-compose-dev.yml down
|
||||||
|
```
|
||||||
|
|
||||||
## TODO
|
## TODO
|
||||||
|
24
docker-compose-dev.yml
Normal file
24
docker-compose-dev.yml
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
version: '3'
|
||||||
|
services:
|
||||||
|
webdav:
|
||||||
|
container_name: docker-webdav-nginx
|
||||||
|
restart: unless-stopped
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
environment:
|
||||||
|
- WEBDAV_USER=user
|
||||||
|
- WEBDAV_PASS=password1
|
||||||
|
networks:
|
||||||
|
- app
|
||||||
|
ports:
|
||||||
|
- '8888:80'
|
||||||
|
volumes:
|
||||||
|
- 'webdav:/var/www/webdav'
|
||||||
|
|
||||||
|
networks:
|
||||||
|
app:
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
webdav:
|
||||||
|
driver: local
|
Loading…
Reference in New Issue
Block a user