๐Ÿ“ฆ derek-adair / docker-django-seed

๐Ÿ“„ docker-compose.yml ยท 34 lines
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
33
34version: "3.8"
services:
  web:
    restart: always
    build:
      context: ./web
      dockerfile: ./ops/Dockerfile
    expose:
      - "8000"
    links:
      - postgres:postgres
      - redis:redis
    volumes:
      - ./web:/code
    command: python ./manage.py runserver 0.0.0.0:8000

  postgres:
    restart: always
    image: postgres:9.6
    ports:
      - "5432:5432"
    environment:
      POSTGRES_HOST_AUTH_METHOD: "trust"
    volumes:
      - ./data/db:/var/lib/postgresql/data

  redis:
    restart: always
    image: redis:latest
    ports:
      - "6379:6379"
    volumes:
      - ./queue_data:/data