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

ufw-docker-automated in docker-compose #1

Closed
vedrancek opened this issue Oct 10, 2020 · 3 comments
Closed

ufw-docker-automated in docker-compose #1

vedrancek opened this issue Oct 10, 2020 · 3 comments

Comments

@vedrancek
Copy link

Hello,

this not an issue report but a question.
How to implement your feature with docker compose?

Cheers!

@shinebayar-g
Copy link
Owner

Hi @vedrancek , thanks for checking out my project. It should work with following sample. But it's not working. I'll dig further the issue and will give feedback.

version: "2.1"
services:
  nginx:
    image: nginx:alpine
    restart: unless-stopped
    ports:
      - "127.0.0.1:8080:80"
    labels:
        UFW_MANAGED: "TRUE"
    networks:
      - my-net

networks:
  my-net:
    driver: bridge

@vedrancek
Copy link
Author

Hi @shinebayar-g, thanks for the reply. It would be great if it would work from docker-compose.

Cheers!

@shinebayar-g
Copy link
Owner

shinebayar-g commented Oct 11, 2020

Hi @vedrancek , I've improved the code and now it supports docker-compose network. I've added example code in an examples folder as well. Let me know if it works for you?

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