myos/stack/host/certbot.yml

27 lines
534 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
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}
networks:
public:
external: true
name: ${DOCKER_NETWORK_PUBLIC}