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

PUID and PGID for docker compose #21

Open
adepiero opened this issue Dec 20, 2023 · 0 comments
Open

PUID and PGID for docker compose #21

adepiero opened this issue Dec 20, 2023 · 0 comments

Comments

@adepiero
Copy link

Hello there.
I would like to run the container with no root privileges, using the same UID/GID of the nginx proxy manager container, so there would be no issues accessing log files.
I am not able to find the correct docker-compose.yml file syntax. I receive no errors when rebuilding the docker app, but a "ps- ef" shows me that the goaccess container is still running in the root context.
This is my docker compose service config for goaccess:

  goaccess:
    image: gregyankovoy/goaccess
    container_name: goaccess
    restart: unless-stopped
    ports:
      - '7889:7889'
    environment:
      - PUID=1000
      - PGID=1000
    volumes:
      - ./nginx-proxy-manager/log:/opt/log
      - ./goaccess:/config:rw
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

1 participant