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'
|
||||
services:
|
||||
webdav:
|
||||
container_name: webdav
|
||||
container_name: docker-webdav-nginx
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- WEBDAV_USER=user
|
||||
@ -72,4 +72,16 @@ volumes:
|
||||
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
|
||||
|
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