~sirodoht/mataroa

ref: 85fede93239589626fb538eeeb65cea3856a49b6 mataroa/docker-compose.yml -rw-r--r-- 615 bytes
85fede93Theodore Keloglou fix validator message to be inclusive all fields 3 months ago
                                                                                
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
version: "3.6"

services:
  db:
    image: postgres:11.6
    environment:
      POSTGRES_PASSWORD: postgres
    volumes:
      - ./db_data:/var/lib/postgresql/data
    ports:
      - "5432:5432"
  web:
    # Docker hack to wait until postgres is up
    command: >
      bash -c "while ! nc -w 1 -z db 5432;
               do sleep 0.1;
               done;
               ./manage.py migrate;
               ./manage.py collectstatic --noinput;
               ./manage.py runserver 0.0.0.0:8000"
    build: .
    image: mataroa
    volumes:
      - .:/code
    ports:
      - "8000:8000"
    depends_on:
      - db