diff options
| author | Adam Soltys <[email protected]> | 2022-09-21 23:33:34 +0000 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-09-21 23:33:34 +0000 |
| commit | 78eaaea6a7c9e8b062da0944c6ecb493f390c367 (patch) | |
| tree | 8dc8f1e557840fc4effc872627b12e2117dd51aa | |
| parent | b3874470a2ec0e9a6828f88b72ac918ec7af8908 (diff) | |
| download | coinos-server-78eaaea6a7c9e8b062da0944c6ecb493f390c367.tar.gz coinos-server-78eaaea6a7c9e8b062da0944c6ecb493f390c367.zip | |
prod config
| -rw-r--r-- | Caddyfile | 19 | ||||
| -rw-r--r-- | prod.yml | 53 |
2 files changed, 67 insertions, 5 deletions
diff --git a/Caddyfile b/Caddyfile new file mode 100644 index 00000000..b50f6f63 --- /dev/null +++ b/Caddyfile @@ -0,0 +1,19 @@ +coinos.bobcat-liberty.ts.net { + handle_path /api* { + reverse_proxy localhost:3119 + } + + handle /lnurl* { + reverse_proxy localhost:3118 + } + + handle /ws* { + reverse_proxy localhost:3119 + } + + handle { + root * /home/adam/coinos-ui/dist + try_files {path}.html {path} /index.html + file_server + } +} @@ -1,24 +1,67 @@ version: '3.6' services: + caddy: + container_name: caddy + image: caddy:2 + ports: + - "443:443" + volumes: + - ./Caddyfile:/etc/caddy/Caddyfile + - ./caddy:/data + environment: + DOMAIN: "${DOMAIN}" + networks: + default: + ipv4_address: 172.42.0.21 app: container_name: app image: gcr.io/coinos-326717/github.com/coinos/coinos-server:prod restart: always - ports: - - '3118:3118' - - '3119:3119' environment: NODE_ENV: production NODE_OPTIONS: "--es-module-specifier-resolution=node --experimental-modules --loader ./loader.js --openssl-legacy-provider" volumes: - ./:/app - ./logs:/logs - - /root/.lnda/tls.cert:/tls.cert extra_hosts: - host.docker.internal:host-gateway + networks: + default: + ipv4_address: 172.42.0.22 maria: container_name: maria image: mariadb restart: always environment: - MARIADB_ROOT_PASSWORD: pw + MARIADB_ROOT_PASSWORD: password + bitcoin: + image: ghcr.io/vulpemventures/bitcoin + container_name: bitcoin + volumes: + - ./config/bitcoin:/home/bitcoin/.bitcoin + restart: unless-stopped + networks: + default: + ipv4_address: 172.42.0.23 + liquid: + image: ghcr.io/vulpemventures/elements + container_name: liquid + volumes: + - ./config/liquid:/home/elements/.elements + restart: unless-stopped + networks: + default: + ipv4_address: 172.42.0.24 + cl: + image: elementsproject/lightningd:v0.12.0 + container_name: cl + volumes: + - ./config/lightning:/root/.lightning + restart: unless-stopped + networks: + default: + ipv4_address: 172.42.0.25 +networks: + default: + name: net + external: true |
