Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add docs on docker integration? #65

Open
BerkeleyTrue opened this issue Jul 11, 2023 · 1 comment
Open

Add docs on docker integration? #65

BerkeleyTrue opened this issue Jul 11, 2023 · 1 comment

Comments

@BerkeleyTrue
Copy link

BerkeleyTrue commented Jul 11, 2023

Hello,

I recently got gotas running in my homelab user docker and traefik as a proxy. There was a lot that is left out of the readme that is required to get this working.

Would you be interested in a PR adding my docker files to this repo?

Here is my current work:

Role: https://github.com/BerkeleyTrue/homelab/tree/archive-ansible/roles/taskserver
Dockerfile:

FROM golang:1.20-alpine AS taskserver-builder

RUN go install github.com/szaffarano/gotas@latest

FROM alpine:latest AS taskserver
ENV TASKDDATA=/var/taskd
WORKDIR /app
COPY --from=taskserver-builder /go/bin/gotas /usr/local/bin/gotas
EXPOSE 53589
CMD ["gotas", "server"]

Compose:

---
version: '3'

networks:
  web:
    external: true

services:
  taskserver:
    container_name: taskserver
    build:
      context: ./
      dockerfile: ./Dockerfile
    restart: unless-stopped
    volumes:
      - ./data:/var/taskd
      - ./certs:/etc/ssl/certs
    environment:
      TASKDDATA: /var/taskd
    networks:
      - web
    labels:
      - traefik.enable=true
      # service
      - traefik.tcp.services.taskserver-service.loadbalancer.server.port=53589

      # web - taskwarrior does it's own validation against ca certs
      # so we don't need https here?
      - traefik.tcp.routers.taskserver-web.entrypoints=web
      - traefik.tcp.routers.taskserver-web.rule=HostSNI(`taskwarrior.{{ traefik_public_url }}`)
      - traefik.tcp.routers.taskserver-web.service=taskserver-service
      - traefik.tcp.routers.taskserver-web.tls.passthrough=true

This could help future users get started much quicker.

@szaffarano
Copy link
Owner

Hi
Yes, sure I'd love it!!! please go ahead and create and PR and of course, any comment and feedback is welcome

Thanks a lot and apologies for the late response, I had a very packed months lately

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants