~linuxgoose/bocpress

ref: f69ddcd72b15c35997d71de551166495808b7069 bocpress/docker-compose.yml -rw-r--r-- 814 bytes
f69ddcd7Jordan Robinson update footer to include source code link 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