26 lines
622 B
YAML
26 lines
622 B
YAML
services:
|
|
caddy:
|
|
container_name: ${NAME:-doc}
|
|
image: ${IMAGE:-doc}
|
|
entrypoint: /opt/bin/boot
|
|
hostname: ${NAME:-doc}
|
|
# env_file:
|
|
# - $CREDENTIALS
|
|
volumes:
|
|
- doc:/doc
|
|
restart: unless-stopped
|
|
ports:
|
|
# use 80 if doing reverse proxy inside container
|
|
# - 80:80
|
|
# map 8080 and 8000 if not doing reverse proxy inside container
|
|
- 8901:8080 # editor
|
|
- 8900:8000 # docs
|
|
# bind doc volume to host for backup or outside container editing
|
|
# volumes:
|
|
# doc:
|
|
# driver: local
|
|
# driver_opts:
|
|
# type: none
|
|
# device: ${PWD}/doc
|
|
# o: bind
|