pages/docker-compose.yml
George 4184a06a42
Added commented code about docker permissions, organized Dockerfile (#2801)
I am currently testing out docker in a remote lab environment where
docker was configured in a way that it can't run as root, causing some
permission issues. The solution I could find was to add these changes
(commented by default) to these files and fill the specifics so it could
run as it was your user running the code.

Signed-off-by: George Araújo <george.gcac@gmail.com>
2024-10-23 11:35:04 -03:00

22 lines
705 B
YAML

# this file uses prebuilt image in dockerhub
services:
jekyll:
image: amirpourmand/al-folio:v0.12.0
build: .
# uncomment these if you are having this issue with the build:
# /usr/local/bundle/gems/jekyll-4.3.4/lib/jekyll/site.rb:509:in `initialize': Permission denied @ rb_sysopen - /srv/jekyll/.jekyll-cache/.gitignore (Errno::EACCES)
# and fill the args values with the output of the commands on the right
# build:
# args:
# GROUPID: # id -g
# GROUPNAME: # id -gn
# USERID: # id -u
# USERNAME: # echo $USER
ports:
- 8080:8080
- 35729:35729
volumes:
- .:/srv/jekyll
environment:
- JEKYLL_ENV=development