add some comments to docker-compose file
This commit is contained in:
parent
c60b9f42a1
commit
c0275bc698
1 changed files with 13 additions and 7 deletions
|
@ -12,16 +12,16 @@ version: '3'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
archivebox:
|
archivebox:
|
||||||
build: .
|
build: . # replace this with nikisweeting/archivebox to use the docker-compose.yml file as a standalone file without avoid having to clone the repo
|
||||||
stdin_open: true
|
stdin_open: true # needed to be able to input URLs directly after `docker-compose up`
|
||||||
tty: true
|
tty: true # needed to be able to pipe in URLs via stdin to `docker-compose exec ...`
|
||||||
# env_file: path/to/your/ArchiveBox.conf
|
# env_file: path/to/your/ArchiveBox.conf # this feature is available starting >v0.4
|
||||||
environment:
|
environment:
|
||||||
- USE_COLOR=False
|
- USE_COLOR=False # make docker logs nicer by not spamming lots of ANSI colors
|
||||||
- SHOW_PROGRESS=False
|
- SHOW_PROGRESS=False # make docker logs nicer by not writing lots of progress bar lines
|
||||||
volumes:
|
volumes:
|
||||||
- ./data:/data
|
- ./data:/data
|
||||||
command: bash -c 'echo "https://github.com/pirate/ArchiveBox" | /bin/archive; tail -f /dev/null'
|
command: bash -c 'echo "https://github.com/pirate/ArchiveBox" | /bin/archive; tail -f /dev/null' # archive the Github repo homepage as a starting point so the index doesn't just show an empty list to new users
|
||||||
|
|
||||||
nginx:
|
nginx:
|
||||||
image: 'nginx'
|
image: 'nginx'
|
||||||
|
@ -30,3 +30,9 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- ./etc/nginx/nginx.conf:/etc/nginx/nginx.conf
|
- ./etc/nginx/nginx.conf:/etc/nginx/nginx.conf
|
||||||
- ./data:/var/www
|
- ./data:/var/www
|
||||||
|
|
||||||
|
# you can also use named volumes / network volumes if you prefer them to simple local mounts
|
||||||
|
# volumes:
|
||||||
|
# archivebox-data:
|
||||||
|
# archivebox-config:
|
||||||
|
# etc. a full example will be added after the v0.4 release
|
||||||
|
|
Loading…
Add table
Reference in a new issue