Use and develop Go + Postgres applications. Includes appropriate runtime args, Go, common tools, extensions, and dependencies.
| Options Id | Description | Type | Default Value |
|---|---|---|---|
| imageVariant | Go version (use -bullseye variants on local arm64/Apple Silicon): | string | 1-bullseye |
| nodeVersion | Node.js version: | string | lts/* |
You can add other services to your .devcontainer/docker-compose.yml file as described in Docker's documentation. However, if you want anything running in this service to be available in the container on localhost, or want to forward the service locally, be sure to add this line to the service config:
# Runs the service on the same network as the database container, allows "forwardPorts" in devcontainer.json function.
network_mode: service:[$SERVICENAME]This template includes the popular PostGres Driver Library for Go. This is the recommended driver for use with Go, as per GoLang Documentation.
If you wish to change this, you may add additional RUN commands in the Go Dockerfile. For example:
# This line can be modified to add any needed additional packages
RUN go get -x <github-link-for-package>Note: This file was auto-generated from the devcontainer-template.json. Add additional notes to a NOTES.md.