summaryrefslogtreecommitdiff
path: root/docker-compose-pg.yml
blob: 44c49fb6113d3e953fa402053019b50b0fc4f8ae (plain)
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
31
32
version: "3"
services:
  db:
    image: postgres:9.6
    volumes:
      - ./tools/docker/db/postdata:/var/lib/postgresql/data
    environment:
      - POSTGRES_PASSWORD=password

  web:
    build:
      context: .
      dockerfile: ./tools/docker/Dockerfile
      args:
        - UID
        - GID
    depends_on:
      - db
    command: python3 manage.py runserver 0.0.0.0:8000
    volumes:
      - .:/home/patchwork/patchwork/
    ports:
      - "8000:8000"
    environment:
      - UID
      - GID
      - PW_TEST_DB_HOST=db
      - PW_TEST_DB_PORT=5432
      - PW_TEST_DB_TYPE=postgres
      - PW_TEST_DB_USER=postgres
      - PW_TEST_DB_PASS=password
      - PGPASSWORD=password