~linuxgoose/bocpress

ref: 579344665340eef72287ea44400d2d5e4f0741fb bocpress/docker-compose.yml -rw-r--r-- 814 bytes
57934466Jordan Robinson add normalisetags management command 2 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
29
30
31
32
services:
  db:
    image: postgres:17
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -U postgres"]
      interval: 5s
      timeout: 5s
      retries: 5
    environment:
      POSTGRES_PASSWORD: postgres
    volumes:
      - ./docker-postgres-data:/var/lib/postgresql/data
    ports:
      - "5432:5432"
  web:
    command: >
      bash -c "uv run --active python manage.py migrate && \
               uv run --active python manage.py collectstatic --noinput && \
               uv run --active python manage.py runserver 0.0.0.0:8000"
    build: .
    image: mataroa
    volumes:
      - .:/code
    ports:
      - "8000:8000"
    depends_on:
      db:
        condition: service_healthy
    environment:
      DEBUG: 1
      LOCALDEV: 1
      DATABASE_URL: postgres://postgres:postgres@db:5432/postgres