A set of Docker Images that can be used for local developer environments.
175
A set of Docker Images that can be used for local developer environments.
This repository aims to provide ready-to-use Docker Images for local development. These images have been setup to reconfigure themselves based on environment variables passed to them at run time.
USER_UID - Set the UID of the "developer" user (default: 1000)
USER_NAME - Set the username of the "developer" user (default: "developer")
EDITOR - Set the default text editor to use (default: "/usr/bin/vim.basic")
SUPERVISORD_LOGLEVEL - Set the log level of SupervisorD (default: "info")
NGINX_ROOT - Set the webroot of the default nginx site (default: "/var/www/html")
docker run \
-e USER_UID=$(id -u) \
-e USER_NAME=$(id -un) \
-e EDITOR="/usr/bin/pico" \
-e SUPERVISORD_LOGLEVEL="debug" \
-e NGINX_ROOT="/var/www/html/public" \
--mount type=bind,source="$(pwd)",target=/var/www/html \
registry.gitlab.com/ruben-funai/developer-workspaces:php-7.4-buster
version: "3.8"
services:
webapp:
image: "registry.gitlab.com/ruben-funai/developer-workspaces:php-7.4-buster"
environment:
USER_UID: "${USER_UID:-1000}"
USER_NAME: "${USER_NAME:-developer}"
EDITOR: "/usr/bin/vim.basic"
SUPERVISORD_LOGLEVEL: "info"
NGINX_ROOT: "/var/www/html/public"
ports:
- target: 80
published: 80
protocol: tcp
mode: host
volumes:
- type: bind
source: .
target: /var/www/html
USER_UID=$(id -u) USER_NAME=$(id -un) docker-compose up
Please see CONTRIBUTING.md
CI/CD Source: https://gitlab.com/ruben-funai/developer-workspaces
GitLab Container Registry: https://gitlab.com/ruben-funai/developer-workspaces/container_registry
Docker Hub: https://hub.docker.com/r/rubenfunai/developer-workspaces
Content type
Image
Digest
Size
216.1 MB
Last updated
about 6 years ago
docker pull rubenfunai/developer-workspaces:php-7.4-buster