From ccae7ddb53b521fd2e1e65032a61e63fd0148e02 Mon Sep 17 00:00:00 2001 From: Oliver Marshall Date: Thu, 5 Sep 2024 11:18:16 +0000 Subject: [PATCH] feat: add ability to view xtdb logs --- .devcontainer/devcontainer.json | 4 +++- .devcontainer/docker-compose.yml | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 3f2241f..3715fe2 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -7,7 +7,9 @@ "workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}", // Features to add to the dev container. More info: https://containers.dev/features. - // "features": {}, + "features": { + "ghcr.io/devcontainers/features/docker-outside-of-docker:1": {} + }, // Use 'forwardPorts' to make a list of ports inside the container available locally. // This can be used to network with other containers or the host. diff --git a/.devcontainer/docker-compose.yml b/.devcontainer/docker-compose.yml index ea34e78..5e325f0 100644 --- a/.devcontainer/docker-compose.yml +++ b/.devcontainer/docker-compose.yml @@ -7,6 +7,7 @@ services: context: .. # Modify this container to install things that can't be installed as http://containers.dev/features dockerfile: .devcontainer/Dockerfile + container_name: app volumes: - ../..:/workspaces:cached @@ -31,6 +32,7 @@ services: xtdb: image: ghcr.io/xtdb/xtdb-standalone-ea:2024-09-02 + container_name: xtdb restart: unless-stopped volumes: - xtdb-data:/var/lib/xtdb