My Dockerfile and related resources.
Language | Build Status | Container Images |
---|---|---|
Go | ghcr.io/mazgi/go-app.development | |
Node.js | ghcr.io/mazgi/node-webapp.development |
If you have an old .env
file, you are able to reset it by removing it.
rm -f .env
ℹ️ If you are using Linux, write out UID, GID, and GID for the docker
group, into the .env
file to let that as exported on Docker Compose as environment variables.
test $(uname -s) = 'Linux' && {
echo -e "DOCKER_GID=$(getent group docker | cut -d : -f 3)"
echo -e "GID=$(id -g)"
echo -e "UID=$(id -u)"
} >> .env || :
Environment variable names and uses are as follows.
Name | Required on Linux | Value |
---|---|---|
UID | Yes | This ID number is used as UID for your Docker user, so this ID becomes the owner of all files and directories created by the container. |
GID | Yes | The same as the above UID. |
DOCKER_GID | Yes | This ID number is used to provide permission to read and write your docker socket on your local machine from your container. |