GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing docs.codebox.davidebianchi.eu — Docker Compose - Codebox v0.0.62-rc3 documentation Docker Compose¶Codebox supports docker-compose standard to define the structure of a workspace. Compose file¶While you can use a regular Docker Compose configuration to define your workspace, Codebox provides a set of custom labels that can be added to containers to seamlessly integrate your stack with the Codebox environment. The docker-compose file can be loaded from either a Git repository or a predefined template. Labels¶Expose a port¶You can configure the default exposed ports for services using labels:
Workspace path¶You can specify the working directory path using the Container user¶You can specify the default user for container access using the Environment¶Codebox provides a set of default environment variables that can be used within your Docker Compose configuration. All of these variables — except for the email address — are automatically converted to lowercase before being injected. You can also define your own custom environment variables as needed. The default environment variables include:
Example¶version: "3.8" services: dev: build: context: . args: USER_NAME: ${CODEBOX_WORKSPACE_OWNER_FIRST_NAME:-} USER_EMAIL: ${CODEBOX_WORKSPACE_OWNER_EMAIL:-} USER_FIRST_NAME: ${CODEBOX_WORKSPACE_OWNER_FIRST_NAME:-} USER_LAST_NAME: ${CODEBOX_WORKSPACE_OWNER_LAST_NAME:-} stdin_open: true tty: true volumes: - /var/run/docker.sock:/var/run/docker.sock - workspace:/home/${CODEBOX_WORKSPACE_OWNER_FIRST_NAME:-} labels: - com.codebox.user=${CODEBOX_WORKSPACE_OWNER_FIRST_NAME:-} volumes: workspace: You can view the full source code and more examples here. Volumes¶Docker volumes can be used to store persistent data link in a normal docker stack. Warning¶You should only use host folder binding to access host resources like docker sock, use docker volumes to store data. |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |