uci-docker-caddy/test/compose/docker-compose.yaml

30 lines
613 B
YAML

services:
caddy:
container_name: caddy-testing
image: testing/caddy
# if no $CONF is given then Caddyfile in ${PWD}/conf:/opt/caddy/conf will be used
command: caddy run ${CONF}
hostname: caddy-testing
env_file:
# this environment file is specific to route53
- $CREDENTIALS
volumes:
- conf:/opt/caddy/conf
# - opt:/opt
ports:
- 80:80
- 443:443
- 2019:2019
volumes:
conf:
driver_opts:
type: none
device: ${PWD}/conf
o: bind
# opt:
# driver_opts:
# type: none
# device: ${PWD}/opt
# o: bind