version: '3.7' services: wg-config: image: toastie89/wg-config build: ./build container_name: wg-config hostname: restic restart: on-failure:3 volumes: - .:/opt/wg-config entrypoint: /bin/sh -c 'cd /opt/wg-config; exec bash' environment: - HOME=/opt/wg-config # For debugging, docker-compose run restic #entrypoint: /bin/sh