File: docker-compose.yml

package info (click to toggle)
django-oauth-toolkit 3.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 2,156 kB
  • sloc: python: 11,100; makefile: 159; javascript: 9; sh: 6
file content (40 lines) | stat: -rw-r--r-- 826 bytes parent folder | download
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
34
35
36
37
38
39
40
volumes:
  idp-data:


x-idp: &idp
  image: django-oauth-toolkit/idp
  volumes:
    - idp-data:/data

services:
  idp-migrate:
    <<: *idp
    build: .
    command: python manage.py migrate

  idp-loaddata:
    <<: *idp
    command: python manage.py loaddata fixtures/seed.json
    depends_on:
      idp-migrate:
        condition: service_completed_successfully

  idp:
    <<: *idp
    command: gunicorn idp.wsgi:application -w 4 -b 0.0.0.0:80 --chdir=/code --timeout 120  --error-logfile '-' --log-level debug --access-logfile '-'
    ports:
      # map to dev port.
      - "8000:80"
    depends_on:
      idp-loaddata:
        condition: service_completed_successfully

  rp:
    image: django-oauth-toolkit/rp
    build: ./tests/app/rp
    ports:
      # map to dev port.
      - "5173:3000"
    depends_on:
      - idp