File: docker-compose.yml

package info (click to toggle)
sqlfluff 3.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 33,984 kB
  • sloc: python: 106,138; sql: 34,188; makefile: 52; sh: 8
file content (30 lines) | stat: -rw-r--r-- 919 bytes parent folder | download
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
27
28
29
30
services:
  development:
    build:
      context: .
      dockerfile: ./docker/development/Dockerfile
    environment:
      - GITHUB_REPOSITORY_OWNER=sqlfluff
      - GITHUB_TOKEN=${SQLFLUFF_GITHUB_TOKEN}
      - POSTGRES_HOST=postgres
      - SSH_AUTH_SOCK=/ssh-agent
    volumes:
      - .:/app
      - ./test/fixtures/dbt/profiles_yml:/root/.dbt
      - ~/.gitconfig:/etc/gitconfig
      - ~/.ssh:/root/.ssh
      - /run/host-services/ssh-auth.sock:/ssh-agent
    stdin_open: true
    tty: true
    depends_on:
      - postgres
    entrypoint: /bin/bash
  postgres:
    image: postgres:14-bullseye
    environment:
      - POSTGRES_PASSWORD=password
    ports:
      # NOTE: "5432:5432" makes the Postgres server accessible to both the host
      # developer machine *and* the "app" container in Docker. If you don't want
      # it available on the host machine, change this to simply "5432".
      - "5432:5432"