I am using a publicly hosted docker project, but the documentation on running it with docker-compose is nonexistent.
Here is the docker run command:
docker run -d -v /persist/gravsite:/apps/var garywiz/docker-grav \
--create-user anyuser:/apps/var
What I need to know is the equivalent for the --create-user in the docker-compose.yml file.
Here is my current entry:
grav:
image: garywiz/docker-grav
container_name: grav
restart: always
user: gravuser
environment:
- VIRTUAL_HOST=www.domain.com,domain.com
- VIRTUAL_PORT=8080
volumes:
- /home/gravuser:/apps/var
Thanks for any help.
docker-gravimage?command: ["create-user","gravuser"]to the definition with no luck.command: ["--create-user", "anyuser:/apps/var"]ERROR: for grav Cannot start service grav: linux spec user: unable to find user gravuser: no matching entries in passwd file. It works fine as a docker-run command though.docker runcommand that is working (as is).