add staging, comment out for now
This commit is contained in:
1 parent
b376fe9ab0
commit
6152144807
4 files changed
+88
No files matched your search
@@ -17,6 +17,8 @@ COPY ./server ./
|
|||||||
|
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
|
RUN cp -r src/templates dist/templates
|
||||||
|
|
||||||
EXPOSE 52345
|
EXPOSE 52345
|
||||||
|
|
||||||
CMD ["node", "dist/index.js"]
|
CMD ["node", "dist/index.js"]
|
||||||
@@ -17,6 +17,8 @@ COPY ./server ./
|
|||||||
|
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
|
RUN cp -r src/templates dist/templates
|
||||||
|
|
||||||
EXPOSE 52345
|
EXPOSE 52345
|
||||||
|
|
||||||
CMD ["node", "dist/index.js"]
|
CMD ["node", "dist/index.js"]
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
services:
|
services:
|
||||||
|
#Gateway
|
||||||
gateway:
|
gateway:
|
||||||
image: nginx:1.27.1-alpine
|
image: nginx:1.27.1-alpine
|
||||||
container_name: checkmate-gateway
|
container_name: checkmate-gateway
|
||||||
@@ -9,6 +10,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- /etc/letsencrypt:/etc/nginx/ssl:ro
|
- /etc/letsencrypt:/etc/nginx/ssl:ro
|
||||||
- ./gateway/nginx.conf:/etc/nginx/conf.d/default.conf:ro
|
- ./gateway/nginx.conf:/etc/nginx/conf.d/default.conf:ro
|
||||||
|
# Production -----
|
||||||
client-prod:
|
client-prod:
|
||||||
image: ghcr.io/bluewave-labs/checkmate:frontend-demo
|
image: ghcr.io/bluewave-labs/checkmate:frontend-demo
|
||||||
restart: always
|
restart: always
|
||||||
@@ -47,3 +49,54 @@ services:
|
|||||||
start_period: 0s
|
start_period: 0s
|
||||||
start_interval: 1s
|
start_interval: 1s
|
||||||
retries: 30
|
retries: 30
|
||||||
|
|
||||||
|
# Staging -----
|
||||||
|
client-staging:
|
||||||
|
image: ghcr.io/bluewave-labs/checkmate:frontend-staging
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
UPTIME_APP_API_BASE_URL: "https://staging.checkmate.so/api/v1"
|
||||||
|
UPTIME_APP_CLIENT_HOST: "https://staging.checkmate.so"
|
||||||
|
expose:
|
||||||
|
- "80"
|
||||||
|
depends_on:
|
||||||
|
- server-staging
|
||||||
|
volumes:
|
||||||
|
- ./nginx/conf.d/staging.conf:/etc/nginx/conf.d/default.conf:ro
|
||||||
|
server-staging:
|
||||||
|
image: ghcr.io/bluewave-labs/checkmate:backend-staging
|
||||||
|
restart: always
|
||||||
|
ports:
|
||||||
|
- "52345:52345"
|
||||||
|
env_file:
|
||||||
|
- server-staging.env
|
||||||
|
depends_on:
|
||||||
|
- mongodb-staging
|
||||||
|
volumes:
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
|
mongodb-staging:
|
||||||
|
image: ghcr.io/bluewave-labs/checkmate:mongo-staging
|
||||||
|
restart: always
|
||||||
|
command: [ "mongod", "--quiet", "--bind_ip_all" ]
|
||||||
|
volumes:
|
||||||
|
- ./mongo/data-staging:/data/db
|
||||||
|
env_file:
|
||||||
|
- mongo-staging.env
|
||||||
|
healthcheck:
|
||||||
|
test: [ "CMD", "mongosh", "--eval", "db.adminCommand('ping')", "--quiet" ]
|
||||||
|
interval: 5s
|
||||||
|
timeout: 30s
|
||||||
|
start_period: 0s
|
||||||
|
start_interval: 1s
|
||||||
|
retries: 30
|
||||||
|
capture:
|
||||||
|
image: ghcr.io/bluewave-labs/capture:latest
|
||||||
|
container_name: capture
|
||||||
|
restart: unless-stopped
|
||||||
|
ports:
|
||||||
|
- "59232:59232"
|
||||||
|
environment:
|
||||||
|
- API_SECRET=my_secret
|
||||||
|
- GIN_MODE=release
|
||||||
|
volumes:
|
||||||
|
- /etc/os-release:/etc/os-release:ro
|
||||||
Executable
+31
@@ -0,0 +1,31 @@
|
|||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
listen [::]:80;
|
||||||
|
|
||||||
|
server_name _;
|
||||||
|
server_tokens off;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
root /usr/share/nginx/html;
|
||||||
|
index index.html index.htm;
|
||||||
|
try_files $uri $uri/ /index.html;
|
||||||
|
}
|
||||||
|
|
||||||
|
location /api/ {
|
||||||
|
proxy_pass http://server-staging:52345/api/;
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
}
|
||||||
|
|
||||||
|
location /api-docs/ {
|
||||||
|
proxy_pass http://server-staging:52345/api-docs/;
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in new issue
Block a user