aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.env.sample2
-rw-r--r--docker-compose.prod.yml44
2 files changed, 46 insertions, 0 deletions
diff --git a/.env.sample b/.env.sample
index 9678b5e0..9fedb2dc 100644
--- a/.env.sample
+++ b/.env.sample
@@ -1,3 +1,5 @@
+NGINX_PORT=8080
+APP_SERVER_PORT=3220
BITCOIN_PEER_PORT=18442
BITCOIN_NODE_PORT=18443
LIQUID_PEER_PORT=18444
diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml
new file mode 100644
index 00000000..97173c77
--- /dev/null
+++ b/docker-compose.prod.yml
@@ -0,0 +1,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