feat: Add dev container
ISSUE CLOSED: clevermicro/amq-adapter-python#69
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
app:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
|
||||
volumes:
|
||||
# Forwards the local Docker socket to the container.
|
||||
- /var/run/docker.sock:/var/run/docker-host.sock
|
||||
# Update this to wherever you want VS Code to mount the folder of your project
|
||||
- ../..:/workspaces:cached
|
||||
|
||||
# Overrides default command so things don't shut down after the process ends.
|
||||
entrypoint: /usr/local/share/docker-init.sh
|
||||
command: sleep infinity
|
||||
|
||||
# Uncomment the next four lines if you will use a ptrace-based debuggers like C++, Go, and Rust.
|
||||
# cap_add:
|
||||
# - SYS_PTRACE
|
||||
# security_opt:
|
||||
# - seccomp:unconfined
|
||||
|
||||
# Use "forwardPorts" in **devcontainer.json** to forward an app port locally.
|
||||
# (Adding the "ports" property to this file will not forward from a Codespace.)
|
||||
depends_on:
|
||||
- rabbitmq
|
||||
- jaeger
|
||||
|
||||
rabbitmq:
|
||||
image: rabbitmq:4-management
|
||||
hostname: "my-rabbit"
|
||||
environment:
|
||||
RABBITMQ_DEFAULT_USER: springuser
|
||||
RABBITMQ_DEFAULT_PASS: TheCleverWho
|
||||
volumes:
|
||||
- "rabbitmq-data:/var/lib/rabbitmq"
|
||||
|
||||
jaeger:
|
||||
image: "jaegertracing/jaeger:2.2.0"
|
||||
command:
|
||||
- "--config=file:/config/jaeger.yml"
|
||||
volumes:
|
||||
- "jaeger-data:/tmp" # This is the only folder can be used without permission issue
|
||||
- "./jaeger-config.yaml:/config/jaeger.yml"
|
||||
- "./jaeger-config-ui.json:/config/jaeger-config-ui.json"
|
||||
environment:
|
||||
- COLLECTOR_OTLP_ENABLED=true
|
||||
|
||||
volumes:
|
||||
rabbitmq-data:
|
||||
jaeger-data:
|
||||
Reference in New Issue
Block a user