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

Integrate yourls plugins to docker image #16

Closed
moookino opened this issue Dec 6, 2018 · 5 comments
Closed

Integrate yourls plugins to docker image #16

moookino opened this issue Dec 6, 2018 · 5 comments

Comments

@moookino
Copy link

moookino commented Dec 6, 2018

Hi, is it possible to easily add plugins to existing docker image builds?
E.g. by providing some related path and config envs for plugins in docker-compose

Thanks in advance!
M.

@LeoColomb
Copy link
Member

LeoColomb commented Dec 6, 2018

@moookino Sure, you can definitely add a volume pointing the user/plugins/ folder!

docker run --name some-yourls -p 8080:80 -v /local/folder:/var/www/html/user/plugins -d yourls
version: '3.1'

services:

  yourls:
    image: yourls
    restart: always
    ports:
      - 8080:80
    environment:
      YOURLS_DB_PASS: example
      YOURLS_SITE: https://example.com
    volumes:
      - /local/folder:/var/www/html/user/plugins

  mysql:
    image: mysql:5.7
    restart: always
    environment:
      MYSQL_ROOT_PASSWORD: example

Let me know if it's working for you.

@moookino
Copy link
Author

moookino commented Dec 6, 2018

@LeoColomb thanks for super fast answer, was confused by 404 plugin, where config also should be changed, but not sure how to do it 😄
All other plugins are ok with setup you provided

I think you can close this issue

@LeoColomb
Copy link
Member

@moookino Thanks for the feedback!

@sutidor
Copy link

sutidor commented Dec 20, 2020

volumes:
  - /local/folder:/var/www/html/user/plugin

instead of plugin it should be plugins:
/var/www/html/user/plugins

@LeoColomb
Copy link
Member

@sutidor Thanks, updated. 👍

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

3 participants