version: '2' services: txt2mail: build: context: ./data/ dockerfile: Dockerfile image: toastie89/txt2mail container_name: txt2mail hostname: txt2mail restart: on-failure:3 volumes: - './data/:/opt/txt2mail' env_file: - .env