myos/stack/host/certbot.yml

27 lines
641 B
YAML
Raw Normal View History

version: '3.6'
services:
certbot:
build:
args:
- DOCKER_BUILD_DIR=docker/certbot
context: ../..
dockerfile: docker/certbot/Dockerfile
command: start
2022-11-29 17:22:35 +01:00
container_name: ${HOST_COMPOSE_PROJECT_NAME}-certbot
2022-12-19 03:48:40 +01:00
domainname: ${DOMAINNAME}
extra_hosts:
- consul:${DOCKER_INTERNAL_DOCKER_HOST}
- ${HOSTNAME}.${DOMAINNAME} ${HOSTNAME}:${DOCKER_HOST_INET4}
hostname: ${HOSTNAME}
2022-11-29 17:22:35 +01:00
image: ${HOST_DOCKER_REPOSITORY}/certbot:${DOCKER_IMAGE_TAG}
network_mode: host
restart: always
volumes:
2022-11-29 17:22:35 +01:00
- host:/etc/letsencrypt
volumes:
2022-11-29 17:22:35 +01:00
host:
external: true
2022-11-29 17:22:35 +01:00
name: ${HOST_DOCKER_VOLUME}