mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2024-11-14 16:37:17 +00:00
Merge pull request #375 from afreydev/docker-compose-fix
This commit is contained in:
commit
9b22fbb982
2 changed files with 16 additions and 11 deletions
|
@ -13,7 +13,10 @@ COMMAND="$@"
|
|||
# e.g. ./manage.py runserver
|
||||
|
||||
chown "$USID":"$GRID" "$DATA_DIR"
|
||||
chown -R "$USID":"$GRID" "/home/$ARCHIVEBOX_USER"
|
||||
usermod -u $USID $ARCHIVEBOX_USER
|
||||
groupmod -g $GRID $ARCHIVEBOX_USER
|
||||
|
||||
if [[ "$USID" != 0 && "$GRID" != 0 ]]; then
|
||||
usermod -u $USID $ARCHIVEBOX_USER
|
||||
groupmod -g $GRID $ARCHIVEBOX_USER
|
||||
chown -R "$USID":"$GRID" "/home/$ARCHIVEBOX_USER"
|
||||
fi
|
||||
gosu $ARCHIVEBOX_USER bash -c "$COMMAND"
|
||||
|
|
|
@ -17,17 +17,19 @@ services:
|
|||
command: server 0.0.0.0:8000
|
||||
stdin_open: true
|
||||
tty: true
|
||||
ports:
|
||||
- 8000:8000
|
||||
environment:
|
||||
- USE_COLOR=True
|
||||
- SHOW_PROGRESS=False
|
||||
volumes:
|
||||
- ./data:/data
|
||||
|
||||
nginx:
|
||||
image: nginx:alpine
|
||||
ports:
|
||||
- 443:443
|
||||
- 80:80
|
||||
volumes:
|
||||
- ./etc/nginx/nginx.conf:/etc/nginx/nginx.conf
|
||||
- ./data:/var/www
|
||||
# nginx:
|
||||
# image: nginx:alpine
|
||||
# ports:
|
||||
# - 443:443
|
||||
# - 80:80
|
||||
# volumes:
|
||||
# - ./etc/nginx/nginx.conf:/etc/nginx/nginx.conf
|
||||
# - ./data:/var/www
|
||||
|
|
Loading…
Reference in a new issue