---
# docker-compose file for letsencrypt cert management

# DOCKER_HOST=dkhost01:2376 docker-compose up install
# DOCKER_HOST=dkhost01:2376 docker-compose up updates

# docker login dkregistry.xai-corp.net:5000
# docker-compose build && docker push dkregistry.xai-corp.net:5000/letsencrypt:latest
# DOCKER_HOST=dkhost:2376 docker stack deploy --with-registry-auth -c docker-compose-update.yml services_letsencrypt
# DOCKER_HOST=dkhost:2376 docker stack ps services


version: '3'
services:

  builder:
    build:
      context: ""
      dockerfile: Dockerfile
    image: "dkregistry.xai-corp.net:5000/letsencrypt:latest"
#    ports:
#      - 80:80
##      - 443:443
#    volumes:
#      - /opt/shared/letsencrypt-2-staging:/etc/letsencrypt
#    environment:
#      LETSENCRYPT_HTTPS_ENABLED: "false"
#      LETSENCRYPT_EMAIL: r_morgan@sympatico.ca
#      LETSENCRYPT_DOMAIN1: xai-corp.net
#      LETSENCRYPT_DOMAIN2: git.xai-corp.net
#      LETSENCRYPT_DOMAIN3: xaibox.xai-corp.net
#      LETSENCRYPT_DOMAIN4: dkui.xai-corp.net
#      LETSENCRYPT_DOMAIN5: dkregistry.xai-corp.net
#      LETSENCRYPT_DOMAIN6: fs.xai-corp.net
#      LETSENCRYPT_DOMAIN7: jenkins.xai-corp.net
#      LETSENCRYPT_DOMAIN8: sql.xai-corp.net
#      LETSENCRYPT_DOMAIN9: office.xai-corp.net
#      LETSENCRYPT_DOMAIN9: www.xai-corp.net
#    command:
#      - install
#      - --staging
#      - --expand
