docker-compose.yml 685 Bytes
Newer Older
1 2
version: '2'
services:
3
  web:
4 5 6
    build: .
    volumes:
      - .:/dist
David Burke's avatar
David Burke committed
7
    command: start
8
    ports:
9 10
      - "4200:4200"
      - "4201:4201"
11 12
    depends_on:
      - api
Saul Shanabrook's avatar
Saul Shanabrook committed
13 14 15
    environment:
      # for e2e tests to pick up on
      DOCKER: 'True'
16
  api:
17 18
    image: registry.gitlab.com/passit/passit-backend:latest
    command: sh -c "./wait-for db:5432 -- ./manage.py migrate --noinput && ./manage.py runserver 0.0.0.0:8000"
19 20
    environment:
      DATABASE_URL: postgres://postgres:postgres@db:5432/postgres
21
      IS_TEST_MODE: 'True'
David Burke's avatar
David Burke committed
22
      IS_PRIVATE_ORG_MODE: "True"
23
      IS_DEBUG: "True"
24 25
    ports:
      - "8000:8000"
26 27
    depends_on:
      - db
28
  db:
David Burke's avatar
David Burke committed
29
    image: postgres:10.1-alpine