version: '2' services: # Example docker-compose service certbot: build: . container_name: certbot volumes: - ./certs:/certs restart: always environment: - WEBROOT="" - DOMAINS=domain1.com domain2.com - EMAIL=webmaster@domain1.com - CONCAT=false - SEPARATE=true