Add Docker Compose for debugging

This commit is contained in:
Logan Marchione 2023-03-30 21:13:18 -04:00
parent aa88052b5a
commit d86126bf70
2 changed files with 37 additions and 1 deletions

View File

@ -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
View 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