aboutsummaryrefslogtreecommitdiffstats
path: root/sampleconfig/nginx
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2021-05-12 00:15:50 -0400
committerAdam Soltys <[email protected]>2021-05-12 00:15:50 -0400
commit89519c0cd1cafeea9939110b99bcf865ffe617a0 (patch)
tree2be35d8fb0c36e18260ace5361b7e980554dcb2b /sampleconfig/nginx
parent38ba24080dd50b1993772ba822c3db83876c4fd3 (diff)
downloadcoinos-server-89519c0cd1cafeea9939110b99bcf865ffe617a0.tar.gz
coinos-server-89519c0cd1cafeea9939110b99bcf865ffe617a0.zip
kyc notification
Diffstat (limited to 'sampleconfig/nginx')
0 files changed, 0 insertions, 0 deletions
2 s HLS (H.264 720p, AAC), a live window and the whole stream (its recording), viewers counted, a dropped sender resuming the same stream, NIP-98 + coinos-name owners only, 3 at once, 4 h each, recordings kept a week.' href='/coinosv3-server.git/commit/compose.yml?id=29688869753d7bc9f1d25db27b9fccc8f11266e1'>2968886 ^
265fc55 ^
2968886 ^


265fc55 ^
2968886 ^




1dd70cc ^


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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85






                                                                             
                                                                                                  

         
                                   
















                                                                                  
                                   














                                                                 
                                   














                                     











                                                                                   
                                            


                                
                                                              




                           


                  
# 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/
#   $STATE/live/config.json       $STATE/live/data/       (TURN key; streams and their recordings)
services:
  names:
    image: ghcr.io/coinos/bun:1.4.3
    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: ghcr.io/coinos/bun:1.4.3
    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: ghcr.io/coinos/bun:1.4.3
    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

  # live streams sent from the app (live/server.js). ffmpeg comes with the
  # vmedia image (vmedia/Dockerfile: `docker build -t vmedia vmedia/` on the host).
  live:
    image: vmedia
    container_name: live
    working_dir: /app
    command: bun live/server.js
    environment:
      LIVE_DATA: /data
      LIVE_PORT: "8795"
      LIVE_BASE: https://v3.coinos.io/live
      NAMES_URL: http://names:8798
      LIVE_CONFIG: /etc/coinosv3/config.json
    volumes:
      - .:/app:ro
      - ${STATE}/live/data:/data
      - ${STATE}/live/config.json:/etc/coinosv3/config.json:ro
    cpus: 4
    mem_limit: 2g
    networks: [net]
    restart: unless-stopped

networks:
  net:
    external: true