aboutsummaryrefslogtreecommitdiffstats
path: root/debug/docker-compose-debug.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'debug/docker-compose-debug.yaml')
-rw-r--r--debug/docker-compose-debug.yaml26
1 files changed, 26 insertions, 0 deletions
diff --git a/debug/docker-compose-debug.yaml b/debug/docker-compose-debug.yaml
new file mode 100644
index 0000000..fe81fc7
--- /dev/null
+++ b/debug/docker-compose-debug.yaml
@@ -0,0 +1,26 @@
+services:
+ db:
+ build:
+ context: .
+ dockerfile: Dockerfile.postgres
+ ports:
+ - 5432:5432
+ environment:
+ - POSTGRES_PASSWORD=secret
+ volumes:
+ - dbasik_data:/var/lib/postgresql/data
+ - ./migrations:/dbasik
+ app:
+ build:
+ context: .
+ dockerfile: Dockerfile
+ # volumes:
+ # - .:/app
+ restart: "unless-stopped"
+ command: "/dlv --listen=:2345 --headless=true --log=true --log-output=debugger,debuglineerr,gdbwire,lldbout,rpc --accept-multiclient --api-version=2 exec ./app"
+ ports:
+ - 2345:2345
+ depends_on:
+ - db
+volumes:
+ dbasik_data: