Skip to content

Commit

Permalink
chore(test): test
Browse files Browse the repository at this point in the history
  • Loading branch information
anteqkois committed May 8, 2024
1 parent bd9e00d commit 8167c96
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
2 changes: 1 addition & 1 deletion apps/api-gateway/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ WORKDIR /app/builder
RUN npx nx run api-gateway:build-with-engine || echo "nx run api-gateway:build failed"
RUN pnpm prune --prod

FROM node:lts-alpine AS runner
FROM node:lts-alpine

WORKDIR /app
# optymalize adding node modules, check if it possible to bundle dependencies to output by webpack
Expand Down
15 changes: 7 additions & 8 deletions apps/api-gateway/docker-compose.prod.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '3.8'

services:
api-gateway:
image: registry.digitalocean.com/linkerry/api-gateway:latest
Expand All @@ -18,18 +16,19 @@ services:
container_name: redis
env_file:
- .env
command: redis-server --appendonly yes --replica-read-only no --requirepass "$${REDIS_PASSWORD:?REDIS_PASSWORD variable is not set}"
command: redis-server --appendonly yes --replica-read-only no --bind redis --port 6379 --requirepass ${REDIS_PASSWORD}
restart: always
ports:
- 4004:6379
# for no reason this don't work if i change port
- 6379:6379
volumes:
- redis:/data

volumes:
redis:
driver: local

# networks:
# default:
# external:
# name: ${NETWORK:-proxy}
networks:
default:
external:
name: ${NETWORK:-proxy}
6 changes: 6 additions & 0 deletions docs/devops/nginx-proxy.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,14 @@ Setup proxy
test
`./test.sh api.linkerry.com`

Not it will display default proxy page 'It works'


## For website add two DNS
![DNS records for linkerry](./dns_records.png)

## If you use Cloudflare, change SSL settings
![Cloudflare SSL settings](./ssl_cloudflare.png)

## For subdomains add this page rules
![Cloudflare SSL settings](./ssl_cloudflare.png)

0 comments on commit 8167c96

Please sign in to comment.