Giter Site home page Giter Site logo

pascalandy / docker-stack-this Goto Github PK

View Code? Open in Web Editor NEW
165.0 14.0 26.0 12.85 MB

A Docker Stack that just work. With Traefik, Socat, Portainer, Nginx, Caddy, Whoami

License: Other

Shell 2.08% CSS 50.86% JavaScript 10.77% HTML 3.95% Go 0.08% HCL 0.07% Dockerfile 0.07% SCSS 32.12%
docker-swarm docker traefik proxy reverse-proxy docker-stacks

docker-stack-this's Introduction

Start here

Work in progress

This project is a monorepo (or an aggregation of mini-projects). Just navigate the directories!

What is this?

The primary goal is to create the easiest and quickest docker stack available around the Docker Swarm ecosystem. I wished I had this when I started (while back when docker-compose was called fig).

I hope the community will use this repo as a base project to demo other stuff like CMS, Log, Monitoring, Volume and Storage, Dbs, Benchmark tools and other cool applications we love to use in Docker.

To accomplish this, we use the power of :

  • play-with-docker (#pwg)
  • Docker Swarm mode
  • Docker stacks

Contributing

The power of communities pull request and forks means that 1 + 1 = 3. Help me make this repo a better one!

  1. Fork it
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request

Need help? Check this post: Contributing to our Github project. Also, by contributing you agree to the Contributor Code of Conduct on GitHub.

Copyright

Sources

Keep in touch

 ____                     _      _              _
|  _ \ __ _ ___  ___ __ _| |    / \   _ __   __| |_   _
| |_) / _` / __|/ __/ _` | |   / _ \ | '_ \ / _` | | | |
|  __/ (_| \__ \ (_| (_| | |  / ___ \| | | | (_| | |_| |
|_|   \__,_|___/\___\__,_|_| /_/   \_\_| |_|\__,_|\__, |
                                                  |___/

P.S. As you might see, I’m not a native English speaker. If something sounds funny, please let me know. Just open an issue. Thank you!

Cheers!

docker-stack-this's People

Contributors

pascalandy avatar pascaldes avatar sisheogorath avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-stack-this's Issues

Enable ACME (Letsencrypt)

Hey Folks!

I just finished a Docker Stack 3.1 compose file docker swarm mode. It work perfectly with play-with-docker and on my nodes. It rocks!

It runs:

1 instance of Traefik
3 instance of caddy
3 instance of caddy
3 instance of who by Emile

Now I’m trying to make it works with ACME and I’m stucked. Is there any gents who would enjoy adapting my Docker Stack with ACME and make the TLS magic happen?

Many cheers!
Pascal

https://github.com/pascalandy/docker-stack-this/tree/master/traefik-manager

P.S. This git project also have a setup where Traefik runs on workers nodes.


Was ask on Slack

FEAT: Caddy 1.0.1

using caddy:1.0.1

This image is stable in my prod. It should not be hard to make it work in this stack :)

Redirect like Portainer

Is it possible to do the same thing you did with the Portainer redirection using Pgadmin4? I'm trying to do this, but it always redirects to http://127.0.0.1/login?next=%2F and I want this: http://127.0.0.1/pgadmin4/login?next=%2F

pgadmin4:
    <<: *default-opts
    image: dpage/pgadmin4
    environment:
      PGADMIN_DEFAULT_EMAIL: [email protected]
      PGADMIN_DEFAULT_PASSWORD: admin
    networks:
      - ntw_front
      - portainer
    deploy:
      mode: replicated
      replicas: 1
      placement:
        constraints: [node.role==manager]
      restart_policy:
        condition: on-failure
      resources:
        limits:
          cpus: '0.50'
          memory: 128M
        reservations:
          memory: 9M
      labels:
        - "traefik.backend=pgadmin4"
        - "traefik.frontend.rule=PathPrefixStrip:/pgadmin4"
        - "traefik.port=80"
        - "traefik.enable=true"
        - "traefik.passHostHeader=true"
        - "traefik.docker.network=ntw_front"
        - "traefik.weight=10"
        - "traefik.backend.loadbalancer.swarm=true"
        - "traefik.backend.loadbalancer.method=drr"
        ## Bug fix / https://github.com/containous/traefik/issues/563#issuecomment-421360934
        - "traefik.frontend.redirect.regex=^(.*)/pgadmin4$$"
        - "traefik.frontend.redirect.replacement=$$1/pgadmin4/"
        - "traefik.frontend.rule=PathPrefix:/pgadmin4;ReplacePathRegex: ^/pgadmin4/(.*) /$$1"

invalid mount config for type bind

(email by Matteo)

Message:
Hi Pascal, I've some question about your docker-stack-this. I've Docker Swarm with 3 nodes and until the previous week, I used Docker Flow Proxy + Letsencrypt companion for manage different container. Sunday I decided to try Treafik because the Flow solution uses too much container. Using this command

docker service create
--name traefik
--constraint=node.role==manager
--publish 80:80 --publish 443:443 --publish 8080:8080
--mount type=bind,source=/var/run/docker.sock,target=/var/run/docker.sock,readonly
--mount type=bind,source=/var/tmp,target=/etc/traefik/acme
--network traefik-net
traefik
--entryPoints='Name:http Address::80 Redirect.EntryPoint:https'
--entryPoints='Name:https Address::443 TLS'
--defaultEntryPoints=http,https
--acme.entryPoint=https
--acme.email=[email protected]
--acme.storage=/etc/traefik/acme/acme.json
--acme.domains=myawesomesite.com
--acme.onHostRule=true
--docker
--docker.swarmmode
--docker.domain=myawesomesite.com
--docker.watch
--web

I can run traefik successfully. But in this case, I can't protect dashboard. So I decided to use a custom toml file, but I can't mount (with eval docker host mode) it correctly. I use this: https://gist.github.com/tehKapa/cd78c15e3b3655e7a78765595f446a9e

The only error that I have is "invalid mount config for type bind". Have you any suggestion?

Thanks!

wordpress glitch

In the repo traefik-manager-noacme,
If I put the container here domain.com/ it works normally. See branch 1.15
When I put the container domain.com/wordpress/, it breaks.

Don't understand why as caddy, nginx, portainer works using PathPrefixStrip.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.