chore: prepare production deployment

This commit is contained in:
2026-07-20 05:24:12 +05:00
parent 2e3550a4dc
commit 77ed2d8423
31 changed files with 681 additions and 496 deletions
+7 -2
View File
@@ -1,3 +1,5 @@
name: flamy_trade
services:
app:
build:
@@ -6,10 +8,12 @@ services:
args:
BUILD_DATE: ${BUILD_DATE:-}
VCS_REF: ${VCS_REF:-}
image: flamy-trade:${APP_IMAGE_TAG:-local}
image: ${APP_IMAGE_REPOSITORY:-flamy-trade}:${APP_IMAGE_TAG:-local}
restart: unless-stopped
init: true
read_only: true
stop_signal: SIGTERM
stop_grace_period: ${APP_STOP_GRACE_PERIOD:-20s}
environment:
NODE_ENV: production
HOST: 0.0.0.0
@@ -52,7 +56,7 @@ services:
max-file: '3'
nginx:
image: nginx:1.30.4-alpine@sha256:97d490c12ba55b4946b01546d1c3ed324e8d41ab1c9fcb2a616aa470620e5b46
image: ${NGINX_IMAGE:-nginxinc/nginx-unprivileged:1.30.4-alpine-perl@sha256:36fa38fb8f34faba45e7e1857644d6561f2faf45e7ce6b15e97d1a2a1682a0cd}
restart: unless-stopped
init: true
read_only: true
@@ -68,6 +72,7 @@ services:
app_protocol: http
volumes:
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
- ./docker/nginx/includes:/etc/nginx/includes:ro
networks:
- backend
cpus: 0.10