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

How to use with docker-compose? #248

Closed
mnlbox opened this issue Aug 7, 2018 · 5 comments
Closed

How to use with docker-compose? #248

mnlbox opened this issue Aug 7, 2018 · 5 comments
Labels
priority/1/critical Highest priority, reserved for bugs particularly if they are critical type/question A question rather than a feature/bug

Comments

@mnlbox
Copy link

mnlbox commented Aug 7, 2018

@clems4ever I want to use this awesome tools with docker-compose and mix this with parse platform.
Now I'm using https://github.com/bitnami/bitnami-docker-parse-dashboard for up and running mongodb + parse-platform + parse-dashboard
I also search a lot for a 2FA solution for parse here and here.

Can you guide me how to add Authelia and openLDAP as a new part to below docker-compose:

version: '2'
services:
  mongodb:
    image: 'bitnami/mongodb:latest'
    ports:
      - '8080:27017'
    volumes:
      - './mongodb_data:/bitnami'
  parse:
    image: 'bitnami/parse:latest'
    ports:
      - '1337:1337'
    volumes:
      - './parse_data:/bitnami'
    depends_on:
      - mongodb
  parse-dashboard:
    image: 'bitnami/parse-dashboard:latest'
    labels:
      kompose.service.type: nodeport
    ports:
      - '80:4040'
    volumes:
      - './parse_dashboard_data:/bitnami'
    depends_on:
      - parse
volumes:
  mongodb_data:
    driver: local
  parse_data:
    driver: local
  parse_dashboard_data:
    driver: local
@clems4ever
Copy link
Member

Hello @mnlbox , I would recommend checking how Authelia is deployed for integration testing. You can have a look at ./scripts/example-commit/dc-example.sh.

@mnlbox
Copy link
Author

mnlbox commented Aug 8, 2018

@clems4ever I see /example/compose/ldap and it seems we can merge this with my docker-compose (first post of this issue) but I don't undrestand your note about ./scripts/example-commit/dc-example.sh 🤔
Can you explain more about this?

@clems4ever
Copy link
Member

clems4ever commented Aug 8, 2018

@mnlbox , I meant the script shows which docker-compose is used to have a complete working environment. You can have a look at the various docker-compose files and choose the ones relevant for your case. In a minimal configuration you would not need all of them but this is a good start.

Please note I'm also refactoring Authelia in the open PR to make it use an environment made of less components in a minimal setup (LDAP, Authelia a frontend proxy and a backend that could be merged with the frontend). I will even remove LDAP at some point.

Regarding parse, I don't really know the techno but what you need in your case is to indeed use the LDAP docker-compose and check the configuration of nginx/portal (which I should rename frontend btw). Normally, I think I made it so that mongo and redis are optional components with the latest version of Authelia. In the other case you can simply check and integrate the docker-compose of redis as well.

@clems4ever clems4ever added type/question A question rather than a feature/bug priority/1/critical Highest priority, reserved for bugs particularly if they are critical labels Aug 9, 2018
@clems4ever
Copy link
Member

@mnlbox , did it solve your issue? Please reopen the ticket if it did not and you need more help.

@mnlbox
Copy link
Author

mnlbox commented Dec 23, 2018

@clems4ever no I need working example with docker-compose. For users that new to docker it's better to have an working example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority/1/critical Highest priority, reserved for bugs particularly if they are critical type/question A question rather than a feature/bug
Projects
None yet
Development

No branches or pull requests

2 participants