aboutsummaryrefslogtreecommitdiffstats
path: root/compose.yml
blob: df0d2d1cc014dd8663e9dc1b050a2e5c720399bf (plain) (blame)
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# The coinos v3 services. Each runs this checkout under Bun.
#
# Secrets and state live outside the checkout, under $STATE (set it in a .env
# file next to this one; see README.md):
#   $STATE/names/config.json      $STATE/names/data/      (names.db)
#   $STATE/nwcpush/config.json    $STATE/nwcpush/data/
#                                 $STATE/blossom/data/
services:
  names:
    image: oven/bun:1.3.14
    container_name: names
    working_dir: /app
    command: bun names/server.js
    environment:
      NAMES_CONFIG: /etc/coinosv3/config.json
    volumes:
      - .:/app:ro
      - ${STATE:?set STATE in .env}/names/config.json:/etc/coinosv3/config.json:ro
      - ${STATE}/names/data:/data
      - ${CLN_RPC:?set CLN_RPC in .env}:/cln/lightning-rpc
      - ${CLN_MUT_RPC:-/dev/null}:/cln-mut/lightning-rpc
    ports:
      - 127.0.0.1:8798:8798
    networks: [net]
    restart: unless-stopped

  nwcpush:
    image: oven/bun:1.3.14
    container_name: nwcpush
    working_dir: /app
    command: bun nwcpush/server.js
    environment:
      NWCPUSH_CONFIG: /etc/coinosv3/config.json
    volumes:
      - .:/app:ro
      - ${STATE}/nwcpush/config.json:/etc/coinosv3/config.json:ro
      - ${STATE}/nwcpush/data:/data
    ports:
      - 127.0.0.1:8797:8797
    networks: [net]
    restart: unless-stopped

  blossom:
    image: oven/bun:1.3.14
    container_name: blossom
    working_dir: /app
    command: bun blossom/server.js
    environment:
      BLOSSOM_DATA: /data
      BLOSSOM_PORT: "8796"
      BLOSSOM_HOST: blossom.coinos.io
    volumes:
      - .:/app:ro
      - ${STATE}/blossom/data:/data
    ports:
      - 127.0.0.1:8796:8796
    networks: [net]
    restart: unless-stopped

networks:
  net:
    external: true