summaryrefslogtreecommitdiff
path: root/stacks/irm/compose.yml
blob: 4ba9977d525d4fafa6bbf3939f7fcb8061cfe972 (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
name: ${STACK} # Explicitly name stacks (do not rely on directory name).

networks:
  edge-net:
    name: ${EDGE_NET}
    external: true # All networks SHOULD be external in production.
  db-net:
    name: ${DB_NET}
    external: true

services:
  irm:
    container_name: ${IRM_CONTAINER} # Name the containers explicitly.
    image: ${IRM_IMAGE}
    restart: unless-stopped
    env_file:
      # NOTE: .compose.env WILL override .env if there are overlapping values.
      - .run.env # Runtime ENV
      - .env # Compose ENV
    networks:
      - edge-net
      - db-net
    expose:
      - 3000
    # Github Issue: https://github.com/linkwarden/linkwarden/issues/1153
    extra_hosts:
      - "${OIDC_PROVIDER_URL}:${PROXY_IP}"