diff --git a/homer/.env.sample b/homer/.env.sample new file mode 100644 index 0000000..19d2c85 --- /dev/null +++ b/homer/.env.sample @@ -0,0 +1,10 @@ +# Uncomment and change the following variables if you want to use them. +#RESTART=unless-stopped +#SYNOLOGY_VOLUME=volume1 +#STACK_NAME=homer +#UID=1024 +#GID=101 +#HOMER_CONTAINER_NAME=Homer +#HOMER_TAG=latest +#HOMER_PORT=8080 +#HOMER_INIT_ASSETS=1 \ No newline at end of file diff --git a/homer/compose.yml b/homer/compose.yml new file mode 100644 index 0000000..f68226a --- /dev/null +++ b/homer/compose.yml @@ -0,0 +1,16 @@ +services: + # Homer + homer: + container_name: ${HOMER_CONTAINER_NAME:-Homer} + hostname: homer + image: b4bz/homer:${HOMER_TAG:-latest} + user: ${UID:-1024}:${GID:-101} + restart: ${RESTART:-unless-stopped} + healthcheck: + test: wget --no-verbose --tries=1 --spider http://localhost:8080/ + environment: + INIT_ASSETS: ${HOMER_INIT_ASSETS:-1} + ports: + - ${HOMER_PORT:-8080}:8080 + volumes: + - /${SYNOLOGY_VOLUME:-volume1}/docker/${STACK_NAME:-homer}/${HOMER_CONTAINER_NAME:-Homer}/www/assets:/www/assets