mirror of
https://github.com/zitadel/zitadel
synced 2024-11-21 16:30:53 +00:00
65f787cc02
# Which Problems Are Solved Describes how to develop ZITADEL using dev containers. # Additional Changes Sets default env variables for using postgres as database in the dev container.
33 lines
1.0 KiB
YAML
33 lines
1.0 KiB
YAML
version: '3.8'
|
|
services:
|
|
devcontainer:
|
|
image: mcr.microsoft.com/devcontainers/base:ubuntu
|
|
volumes:
|
|
- ../..:/workspaces:cached
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
network_mode: service:db
|
|
command: sleep infinity
|
|
environment:
|
|
- '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'
|
|
db:
|
|
image: postgres:latest
|
|
restart: unless-stopped
|
|
volumes:
|
|
- postgres-data:/var/lib/postgresql/data
|
|
environment:
|
|
POSTGRES_PASSWORD: postgres
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_DB: postgres
|
|
|
|
volumes:
|
|
postgres-data:
|