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

Docker compose, traefik integration #588

Open
bluikko opened this issue Jun 30, 2021 · 0 comments
Open

Docker compose, traefik integration #588

bluikko opened this issue Jun 30, 2021 · 0 comments

Comments

@bluikko
Copy link

bluikko commented Jun 30, 2021

The Docker setup here uses compose and websites are routed through traefik. I would guess that is a very common setup. So I wanted to share the docker-compose file I came up with in case it is useful to someone else. I am not an expert so feedback is useful as well.

It is for traefik v1.7 (traefik v2.x would likely be different) and the RTR port is just passed through outside of traefik. In more complex setups it may be easier to route that through traefik as well.

This setup will be moving to swarm + traefik v2 so I will probably share that too if it is useful.

version: '3'
 
services:
    routinator:
        image: nlnetlabs/routinator:latest
        restart: unless-stopped
        ports:
            - '3323:3323'
        volumes:
            - routinator-tals:/home/routinator/.rpki-cache/tals:Z
        labels:
            - "traefik.enable=true"
            - "traefik.docker.network=proxy"
            - "traefik.frontend.rule=Host:${ROUTINATOR_URL_HOSTNAME}"
            - "traefik.frontend.passHostHeader=true"
            # for https
            # - "traefik.frontend.entryPoints=http,https"
            # - "traefik.frontend.redirect.entryPoint=https"
            # for http
            - "traefik.frontend.entryPoints=http"
            - "traefik.port=9556"
        networks:
            proxy:
 
networks:
    proxy:
        external: true
 
volumes:
    # create & init this before starting first time by following the 2 commands published in "Quick Start with Docker"
    routinator-tals:
        external: true
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

1 participant