configure dev container

This commit is contained in:
Elio Bischof
2025-07-18 17:20:57 +02:00
parent b746be06d0
commit 7cb7b60300
3 changed files with 7 additions and 14 deletions

View File

@@ -5,12 +5,12 @@
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}", "workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
"features": { "features": {
"ghcr.io/devcontainers/features/go:1": { "ghcr.io/devcontainers/features/go:1": {
"version": "1.22" "version": "1.24"
},
"ghcr.io/devcontainers/features/node:1": {
"version": "lts/iron"
}, },
"ghcr.io/devcontainers/features/node:1": {},
"ghcr.io/guiyomh/features/golangci-lint:0": {}, "ghcr.io/guiyomh/features/golangci-lint:0": {},
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {},
"ghcr.io/devcontainers/features/github-cli:1": {},
"ghcr.io/jungaretti/features/make:1": {} "ghcr.io/jungaretti/features/make:1": {}
}, },
"forwardPorts": [ "forwardPorts": [

View File

@@ -2,21 +2,14 @@ version: '3.8'
services: services:
devcontainer: devcontainer:
image: mcr.microsoft.com/devcontainers/base:ubuntu image: mcr.microsoft.com/devcontainers/base:ubuntu
user: "1000:1000"
volumes: volumes:
- ../..:/workspaces:cached - ..:/workspaces
- /var/run/docker.sock:/var/run/docker.sock - ${HOME}:/home/${USER}
network_mode: service:db network_mode: service:db
command: sleep infinity command: sleep infinity
environment: environment:
ZITADEL_DATABASE_POSTGRES_HOST: db ZITADEL_DATABASE_POSTGRES_HOST: db
ZITADEL_DATABASE_POSTGRES_PORT: 5432
ZITADEL_DATABASE_POSTGRES_DATABASE: zitadel
ZITADEL_DATABASE_POSTGRES_USER_USERNAME: zitadel
ZITADEL_DATABASE_POSTGRES_USER_PASSWORD: zitadel
ZITADEL_DATABASE_POSTGRES_USER_SSL_MODE: disable
ZITADEL_DATABASE_POSTGRES_ADMIN_USERNAME: postgres
ZITADEL_DATABASE_POSTGRES_ADMIN_PASSWORD: postgres
ZITADEL_DATABASE_POSTGRES_ADMIN_SSL_MODE: disable
ZITADEL_EXTERNALSECURE: false ZITADEL_EXTERNALSECURE: false
db: db:
image: postgres:latest image: postgres:latest