summaryrefslogtreecommitdiff
path: root/stacks/irm/compose.yml
blob: 0e97160a7b3eb90b623a063fbc4737f16d675b21 (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
39
40
41
42
43
44
45
46
name: ${_STACK_0} # Explicitly name stacks (do not rely on directory name).

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

volumes:
  irm-db:
    name: ${_VOLUME_0}
    external: true # All volumes SHOULD be external in production.

services:
  irm:
    container_name: ${_CONTAINER_0} # Name the containers explicitly.
    image: ghcr.io/linkwarden/linkwarden:latest
    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}"
    depends_on:
      - irm-db
  irm-db:
    container_name: ${_CONTAINER_1} # Name the containers explicitly.
    image: postgres:16
    restart: unless-stopped
    env_file:
      - .run.env
      - .env
    volumes:
      - irm-db:/var/lib/postgresql/data
    networks:
      - db-net
    expose:
      - 5432