version: '3.7'

services:
  web:
    image: wger/devel:2.0-dev
    volumes:
      - type: bind
        source: ../../../
        target: /home/wger/src/
      - media:/home/wger/media
    ports:
      - 8000:8000
    env_file:
      - ./dev.env
    depends_on:
      - db
      - cache

  db:
    image: postgres:12.0-alpine
    volumes:
      - wger-postgres-data:/var/lib/postgresql/data/
    expose:
      - 5432
    environment:
      - POSTGRES_USER=wger
      - POSTGRES_PASSWORD=wger
      - POSTGRES_DB=wger

  cache:
    restart: always
    image: redis:latest
    expose:
      - 6379

volumes:
  wger-postgres-data:
  media:

version: '3.7'

services:
  web:
    image: wger/devel:2.0-dev
    volumes:
      - type: bind
        source: ../../../
        target: /home/wger/src/
      - media:/home/wger/media
    ports:
      - 8000:8000
    env_file:
      - ./dev.env
    depends_on:
      - db
      - cache

  db:
    image: postgres:12-alpine
    volumes:
      - wger-postgres-data:/var/lib/postgresql/data/
    expose:
      - 5432
    environment:
      - POSTGRES_USER=wger
      - POSTGRES_PASSWORD=wger
      - POSTGRES_DB=wger

  cache:
    restart: always
    image: redis:latest
    expose:
      - 6379

volumes:
  wger-postgres-data:
  media:

Use the last version of the 12er postgres release
Use the last version of the 12er postgres release
