aboutsummaryrefslogtreecommitdiffstats
path: root/debug/docker-compose-debug.yaml
blob: fe81fc7a0cfc3c3923b768868d5ebc4e89ae964f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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: