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 provide config file in docker compose file? #1279

Open
muneeebsheikh opened this issue Mar 4, 2024 · 2 comments
Open

How to provide config file in docker compose file? #1279

muneeebsheikh opened this issue Mar 4, 2024 · 2 comments

Comments

@muneeebsheikh
Copy link

Hi I want to provide config file to the docker container via docker compose file.

I am sure there is some way to do that, it would be great someone can help me out with this.

Thanks.

@ghost
Copy link

ghost commented Apr 20, 2024

Maybe just add this line at the end of the docker-compose.yaml?

" entrypoint: ["/bin/ftpserver","-conf","/apps/ftpserver.json"]" (with the spaces, because it is a yaml)

@ScottESanDiego
Copy link

Just mount the config file into the container as a volume. Here's my trivial docker-compse file, note the ftpserver.json volume:

services:
  ftp:
    image: fclairamb/ftpserver:latest
    container_name: ftp
    volumes:
      - /data/media/ftp/ftpserver.json:/app/ftpserver.json:ro
      - /var/ftproot:/ftproot
      - /etc/acme-sh/scotte.ai_ecc/scotte.ai.key:/key.pem:ro
      - /etc/acme-sh/scotte.ai_ecc/scotte.ai.cer:/cert.pem:ro
    ports:
      - "2121-2130:2121-2130/tcp"

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