summaryrefslogtreecommitdiff
path: root/docker-compose.yml
blob: 8b3c92a9c3818aab5df7610e23c81ee9e980ee9a (plain)
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
version: "3.8"
services:
  server:
    image: atlargeresearch/opendc:v2.1
    restart: on-failure
    networks:
      - backend
    depends_on:
      - postgres
    volumes:
      - type: bind
        source: ./traces
        target: /opt/opendc/traces
    environment:
      OPENDC_DB_USERNAME: ${OPENDC_DB_USERNAME:?No database username specified}
      OPENDC_DB_PASSWORD: ${OPENDC_DB_PASSWORD:?No database password specified}
      OPENDC_DB_URL: jdbc:postgresql://postgres:5432/opendc
      OPENDC_AUTH0_DOMAIN: ${OPENDC_AUTH0_DOMAIN:?No Auth0 domain specified}
      OPENDC_AUTH0_AUDIENCE: ${OPENDC_AUTH0_AUDIENCE:?No Auth0 audience specified}
      OPENDC_API_URL: ${OPENDC_API_BASE_URL:-http://web:8080}
      SENTRY_DSN: ${OPENDC_SERVER_SENTRY_DSN-}

  postgres:
    image: postgres:17.9
    restart: on-failure
    environment:
      POSTGRES_USER: ${OPENDC_DB_USERNAME}
      POSTGRES_PASSWORD: ${OPENDC_DB_PASSWORD}
    networks:
      - backend
    volumes:
      - postgres:/var/lib/postgresql/data

volumes:
  postgres:

networks:
  backend: {}