aboutsummaryrefslogtreecommitdiffstats
path: root/docker-compose.prod.yml
blob: 97173c77f8750436b63e6e1c1a44c1b0ab7a8f33 (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
version: '3.6'
services:
  ui:
    container_name: ui
    image: asoltys/coinos-ui:prod
    volumes:
      - ./config/nginx:/etc/nginx/templates
    environment:
      HOST: ${HOST}
    network_mode: host
  app:
    container_name: app
    image: asoltys/coinos-server
    environment:
      NODE_ENV: production
    volumes:
      - ./:/app
    network_mode: host
  la:
    image: elementsproject/lightningd:latest
    container_name: la
    volumes:
      - ./config/lightning:/root/.lightning
    restart: unless-stopped
    network_mode: host
  lb:
    image: elementsproject/lightningd:latest
    container_name: lb
    volumes:
      - ./config/lightningb:/root/.lightning
    restart: unless-stopped
    network_mode: host
  maria:
    container_name: mariadb
    image: mariadb:10.6.1
    restart: always
    command:
      - --bind-address=0.0.0.0
      - --port=3307
    environment:
      MARIADB_ROOT_PASSWORD: ${ROOT_PASSWORD}
    volumes:
      - ./mysql:/var/lib/mysql
    network_mode: host
nt-type: application/json" -H "Authorization: Bearer $token" -d '{ "amount": 5000, "address": "bc1q3unh97w4rmelflrm2hvdwz37d8kray3vn4d5ca" }'`, internal: `curl "${api}/send" -H "content-type: application/json" -H "Authorization: Bearer $token" -d '{ "amount": 5000, "username": "alice" }'`, rates: `curl "${api}/rates" -H "content-type: application/json" }'`, lightningInvoice: `curl "${api}/invoice" -H "content-type: application/json" -H "Authorization: Bearer $token" -d '{ "invoice": { "amount": 1000, "type": "lightning" } }'`, bitcoinAddress: `curl "${api}/invoice" -H "content-type: application/json" -H "Authorization: Bearer $token" -d '{ "invoice": { "amount": 3141, "type": "bitcoin" } }'`, webhook: `curl "${api}/invoice" -H "content-type: application/json" -H "Authorization: Bearer $token" -d '{ "invoice": { "type": "lightning", "webhook": "https://example.com/payment/received", "secret": "webhooksecret" } }'`, fetchInvoice: `curl "${api}/invoice/bc1qmhfk9stzffhd9umzmld92vff7zg3mdlh7rvvaj" -H "content-type: application/json"'`, invoiceResponse: `{ "amount":3141 "tip":0 "type":"bitcoin" "prompt":false "rate":31836.9702667 "hash":"bc1qmhfk9stzffhd9umzmld92vff7zg3mdlh7rvvaj" "text":"bitcoin:bc1qmhfk9stzffhd9umzmld92vff7zg3mdlh7rvvaj?amount=0.00003141" "currency":"CAD" "uid":"a9770421-3f65-11ed-9f57-0242ac2a0004" "received":0 "created":1677537428134 }`, socketAuth: `echo '{"type":"login","data":{"username":"user","password":"password"}}' | websocat -n https://coinos.io/ws`, };