File: docker-compose.yaml

package info (click to toggle)
python-django-pint 0.7.3-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 432 kB
  • sloc: python: 1,531; makefile: 28; sh: 12
file content (30 lines) | stat: -rw-r--r-- 475 bytes parent folder | download | duplicates (2)
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
version: '3'

volumes:
  postgres_data: {}

services:

  postgres:
    image: postgres:12-alpine
    volumes:
      - postgres_data:/var/lib/postgresql/data  # DB persistence
    env_file:
      - .env
    ports:
      - "5432:5432"

  app: &app
    build:
      context: .
      dockerfile: Dockerfile
    image: django-pint
    depends_on:
      - postgres
    volumes:
      - .:/django-pint
    ports:
      - "8000:8000"
    env_file:
      - .env
    command: sleep 5d