5etools-docker/docker-compose.yml
Joey Hafner 689c23610b Miscellaneous fixes:
- Fix default volume mapping behavior to match docs.
- Switch default source to include images.
- Comment out docker-managed volume.
- Anonymize configured git user.
- Increase postBuffer size to mitigate issue with Git Bash.
- Add safe.directory workaround for pre-existing repositories.
2023-09-05 17:13:04 -07:00

25 lines
1021 B
YAML

version: "3"
services:
5etools-docker:
container_name: 5etools-docker
image: jafner/5etools-docker
volumes:
- ~/5etools-docker/htdocs:/usr/local/apache2/htdocs
ports:
- 8080:80/tcp
environment:
- SOURCE=GITHUB
# Required unless OFFLINE_MODE=TRUE and the site files are already present.
# Expects one of GITHUB, GITHUB-NOIMG, GET5ETOOLS, or GET5ETOOLS-NOIMG. Where:
# GITHUB pulls from https://github.com/5etools-mirror-1/5etools-mirror-1
# GITHUB-NOIMG pulls from https://github.com/5etools-mirror-1/5etools-mirror-1 without image files.
# GET5ETOOLS pulls from https://get.5e.tools
# GET5ETOOLS-NOIMG pulls from https://get.5e.tools without image files.
# The get.5e.tools source has been down (redirecting to 5e.tools) during development.
# This method is not tested.
#- OFFLINE_MODE=TRUE
# Optional. Expects "TRUE" or "FALSE".
# Uncomment this block to use a docker-managed volume:
#volumes:
# 5etools-docker: