Skip to content

Commit 15ab347

Browse files
committed
Add ona config
1 parent bb7da3b commit 15ab347

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"dockerComposeFile": "docker-compose.yml",
3+
"service": "devcontainer",
4+
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
5+
"postCreateCommand": ".devcontainer/bin/postCreateCommand"
6+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
services:
2+
# Update this to the name of the service you want to work with in your docker-compose.yml file
3+
devcontainer:
4+
image: ghcr.io/studitemps/devcontainer-base:date-2025-11-24
5+
6+
network_mode: "host"
7+
8+
volumes:
9+
# Update this to wherever you want VS Code to mount the folder of your project
10+
- ../../..:/workspaces:cached
11+
# Uncomment the next line to use Docker from inside the container. See https://aka.ms/vscode-remote/samples/docker-from-docker-compose for details.
12+
- /var/run/docker.sock:/var/run/docker.sock
13+
# Store command history persistently
14+
- commandhistory:/commandhistory
15+
16+
# Overrides default command so things don't shut down after the process ends.
17+
command: sleep infinity
18+
19+
rabbitmq:
20+
# https://hub.docker.com/_/rabbitmq/
21+
image: rabbitmq:3.10.8
22+
ports:
23+
- "127.0.0.1:5672:5672" # publish to host loopback only
24+
- "127.0.0.1:15672:15672" # publish to host loopback only
25+
26+
postgres:
27+
# https://hub.docker.com/_/postgres/
28+
image: postgres:15.6
29+
ports:
30+
- "127.0.0.1:5432:5432" # publish to host loopback only
31+
environment:
32+
- POSTGRES_USER=postgres
33+
- POSTGRES_PASSWORD=postgres
34+
35+
volumes:
36+
commandhistory:

0 commit comments

Comments
 (0)