diff options
Diffstat (limited to 'stacks/irm/compose.yml')
| -rw-r--r-- | stacks/irm/compose.yml | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/stacks/irm/compose.yml b/stacks/irm/compose.yml new file mode 100644 index 0000000..0e97160 --- /dev/null +++ b/stacks/irm/compose.yml @@ -0,0 +1,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 |
