summaryrefslogtreecommitdiffstats
path: root/docker-compose.yml
blob: 7dfc8520575e5d3b9fc02e026325b76eff4dbbb4 (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
version: "2.3"
services:
  db:
    build: postgres-hstore
    restart: always
    # NOTE: Comment out `volumes` for development
    volumes:
      - /var/spejstore-data:/var/lib/postgresql/data
    # NOTE: Uncomment this awful thing for development
    # environment:
      # - POSTGRES_HOST_AUTH_METHOD=trust

  web:
    build: .
    restart: always
    command: bash -c "python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
    volumes:
      - .:/code
    ports:
      - "8000:8000"
    depends_on:
      - db

    env_file:
      - spejstore-dev.env
      # NOTE: Comment out this for development
      - spejstore.env